discourse/app/assets/javascripts/discourse
Martin Brennan befaf39aca
DEV: Refactor and test plugin addKeyboardShortcut (#9381)
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.
2020-04-09 10:30:26 +10:00
..
adapters FEATURE: Support for publishing topics as pages (#9364) 2020-04-08 12:52:36 -04:00
components DEV: Replace jquery.putCursorAtEnd (#9390) 2020-04-08 16:13:02 -04:00
controllers DEV: Refactor and test plugin addKeyboardShortcut (#9381) 2020-04-09 10:30:26 +10:00
helpers Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
initializers FEATURE: Bookmark keyboard shortcuts (#9318) 2020-04-07 14:03:15 +10:00
lib DEV: Refactor and test plugin addKeyboardShortcut (#9381) 2020-04-09 10:30:26 +10:00
mixins DEV: prefer Date.now() over new Date().getTime() 2020-03-26 17:36:53 +11:00
models FIX: Ensure first post is loaded before trying to bookmark topic (#9382) 2020-04-09 09:42:03 +10:00
pre-initializers Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00
raw-views Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00
routes FEATURE: Support for publishing topics as pages (#9364) 2020-04-08 12:52:36 -04:00
services Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00
templates FIX: Labels for modal close and dismiss-error buttons 2020-04-08 11:56:29 -07:00
widgets FEATURE: Support for publishing topics as pages (#9364) 2020-04-08 12:52:36 -04:00
mapping-router.js Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00