Adds preventDefault option to IKeyBinding and IKeyBindingOptions to enable downstreams to opt out of preventing default on the processed keyboard events
Adds CommandRegistry.holdKeyBindingExecution(event: KeyboardEvent, permission: Promise<boolean>): void; method which enables downstream to hold the execution of a keybinding until the permission to execute resolves to true, or to prevent it if it resolves with false
Closes https://github.com/jupyterlab/lumino/issues/688
preventDefault
option toIKeyBinding
andIKeyBindingOptions
to enable downstreams to opt out of preventing default on the processed keyboard eventsCommandRegistry.holdKeyBindingExecution(event: KeyboardEvent, permission: Promise<boolean>): void;
method which enables downstream to hold the execution of a keybinding until the permission to execute resolves totrue
, or to prevent it if it resolves withfalse