Override key press

Help
Vin
2012-10-09
2013-01-25
  • Vin
    Vin
    2012-10-09

    Hi, I was wondering if it was possible to override key presses with python script.
    It looks like "editor.assignCmdKey" only takes special characters, and the SCINTILLANOTIFICATION.CHARADDED displays the character to the screen (also, this event only appeared to be fired for printable characters, e.g. not 'up' or 'shift').

    I'd like something akin to setting a macro in notepad++, but I'd like to fire some callback function instead.
    The end goal is to create a vim-style mode by listening for key presses and overriding them depending on whether we are editing or traversing.

    Any help on this would be much appreciated :)