mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 18:22:45 +08:00
befaf39aca
Refactor plugin-api `addKeyboardShortcut` to point to `KeyboardShortcuts`. * Do not add shortcuts to the default object directly. * Create an addShortcut function in keyboard-shortcuts to add shortcuts safely and call to bindKey to be able to use opts. * Refactor controllers/bookmark.js to use new addShortcut func and emove unnecessary addBindings. * No longer export keyboard shortcut bindings, rename to DEFAULT_BINDINGS and remove export, these do not need to be accessed by anything else. |
||
---|---|---|
.. | ||
acceptance | ||
admin | ||
components | ||
controllers | ||
ember | ||
fixtures | ||
helpers | ||
initializers | ||
lib | ||
mixins | ||
models | ||
utils | ||
widgets | ||
plugin_tests.js.erb | ||
test_helper.js |