discourse/app/assets/javascripts/discourse
Martin Brennan 93c38cc175
FEATURE: Bookmark keyboard shortcuts (#9318)
Adds keyboard bindings and associated help menu for selecting reminder type in bookmark modal, and pressing Enter to save.

Introduce the following APIs for `KeyboardShortcuts`:

* `pause` - Uses the provided array of combinations and unbinds them using `Mousetrap`.
* `unpause` - Uses the provided combinations and rebinds them to their default shortcuts listed in `KeyboardShortcuts`.
* `addBindings` - Adds the array of keyboard shortcut bindings and calls the provided callback when a binding is fired with Mousetrap.
* `unbind` - Takes an object literal of a binding map and unbinds all of them e.g. `{ enter: { handler: saveAndClose" } };`
2020-04-07 14:03:15 +10:00
..
adapters FIX: allows adapters to define a custom primaryKey (#9254) 2020-03-30 15:23:59 +02:00
components No category styles (#9359) 2020-04-06 12:02:33 -05:00
controllers FEATURE: Bookmark keyboard shortcuts (#9318) 2020-04-07 14:03:15 +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 FEATURE: Bookmark keyboard shortcuts (#9318) 2020-04-07 14:03:15 +10:00
mixins DEV: prefer Date.now() over new Date().getTime() 2020-03-26 17:36:53 +11:00
models FIX: add category hashtags support for sub-sub categories. 2020-04-06 20:43:38 +05:30
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: Display "Last Updated At" on user directory 2020-03-30 14:34:48 -04:00
services Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00
templates FEATURE: Bookmark keyboard shortcuts (#9318) 2020-04-07 14:03:15 +10:00
widgets FIX: prevents registering multiple topic-notifications-button:changed (#9356) 2020-04-06 15:06:26 +02:00
mapping-router.js Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00