overwriting browser's keycode

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • stefan.goessner@gmail.com

    overwriting browser's keycode

    I want to overwrite the CTRL+S key via 'onkeypress' so, that the
    browser doesn't recognize it as 'Save page as ..' command.

    I assumed, that calling 'evt.preventDef ault()' in my event-handler
    would be sufficient. It isn't.

    Any hints ?

    Thanks

    Stefan

  • stefan.goessner@gmail.com

    #2
    Re: overwriting browser's keycode

    I resolved it by implementing 'onkeydown' and 'onkeyup' handlers, that
    also call 'evt.preventDef ault()'.
    --
    stefan

    stefan.goessner @gmail.com schrieb:
    [color=blue]
    > I want to overwrite the CTRL+S key via 'onkeypress' so, that the
    > browser doesn't recognize it as 'Save page as ..' command.
    >
    > I assumed, that calling 'evt.preventDef ault()' in my event-handler
    > would be sufficient. It isn't.
    >
    > Any hints ?
    >
    > Thanks
    >
    > Stefan[/color]

    Comment

    Working...