document.body.addEvent('keyup', function(event){
if (event.key == <whatever backspace is>) event.stop(); //or confirm with
the user or whatever.
});
On Tue, Jul 13, 2010 at 5:49 PM, Paul Spencer <[email protected]> wrote:
> I have an application that allows users to delete nodes in a vector line by
> pressing 'delete', which works great on normal keyboards but Mac keyboards
> have a 'delete' key that actually does a 'backspace' unless you press
> fn-delete. I'd like to still enable the delete behaviour when pressing this
> key but eliminate the browser's default behaviour of going backwards in the
> browser history. Is there a simple way I can do this? More.Keyboard?
> Change the event somehow to use the 'delete' keycode instead of
> 'backspace'?
>
> Cheers
>
> Paul