Programatically Forcing Chromium's Native Keystroke Handling


#1

I know that an extension may Force Chromium’s Native Keystroke Handling by registering the binding as "native!" in some keybindings.cson file, or by setting the relevent element’s class to .native-key-bindings.

But here is what I need: I need to capture the keypress, check some conditions, and if those conditions fail, then dispatch the event to be handled by Chrome’s native keystroke handling.

Does anyone know how to do the latter?