diff --git a/src/keymaps/index.ts b/src/keymaps/index.ts index b9377d62b..dd876c99f 100644 --- a/src/keymaps/index.ts +++ b/src/keymaps/index.ts @@ -85,18 +85,22 @@ export default class KeymapsModule extends Module { * console.log('do stuff'); * }); * // or - * keymaps.add('ns:my-keymap', '⌘+s, ctrl+s', 'some-gjs-command'); + * keymaps.add('ns:my-keymap', '⌘+s, ctrl+s', 'some-gjs-command', { + * // Prevent the default browser action + * prevent: true, + * }); * * // listen to events - * editor.on('keymap:emit', (id, shortcut, e) => { + * editor.on('keymap:emit', (id, shortcut, event) => { * // ... * }) */