1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 14:50:56 +00:00
* Added: Setting to hide the "Not Live" bar beneath videos and clips that appears when the channel is currently live.
* Fixed: Handling of `https://www.twitch.tv/<channel>/clip/<slug>` urls for rich chat embeds and rich link tool-tips.
* Fixed: Lower the priority of custom highlight terms so they will not break links.
* Fixed: Holding multiple modifier keys to display in-line chat actions.
* Fixed: Clean up out-dated avatar display setting for the directory.

* API Added: Allow add-ons to access the Popper JS library via `FrankerFaceZ.utilities.popper`.
* API Added: `<icon-picker />` Vue component for selecting an icon.
* API Added: `<react-link />` Vue component for creating links that cause the React app to navigate without a page load.
* API Added: `<t-list />` Vue component for translating text including Vue elements.
* API Added: `maybeLoad(icon)` function for font awesome to only load the font if the icon is from font awesome.
* API Added: `generateUUID()` function to `FrankerFaceZ.utilities.object`
* API Added: The `vue-observe-visibility` module is now loaded with Vue and made available in all Vue contexts.
This commit is contained in:
SirStendec 2019-06-08 17:35:48 -04:00
parent 3157aeb390
commit aa25bff498
22 changed files with 210 additions and 218 deletions

View file

@ -319,18 +319,8 @@ export default class Scroller extends Module {
}
inst.ffzHandleKey = inst.ffzHandleKey.bind(inst);
Mousetrap.bindGlobal('alt', inst.ffzHandleKey, 'keydown');
Mousetrap.bindGlobal('alt', inst.ffzHandleKey, 'keyup');
Mousetrap.bindGlobal('shift', inst.ffzHandleKey, 'keydown');
Mousetrap.bindGlobal('shift', inst.ffzHandleKey, 'keyup');
Mousetrap.bindGlobal('ctrl', inst.ffzHandleKey, 'keydown');
Mousetrap.bindGlobal('ctrl', inst.ffzHandleKey, 'keyup');
Mousetrap.bindGlobal('command', inst.ffzHandleKey, 'keydown');
Mousetrap.bindGlobal('command', inst.ffzHandleKey, 'keyup');
window.addEventListener('keydown', inst.ffzHandleKey);
window.addEventListener('keyup', inst.ffzHandleKey);
inst.hoverPause = inst.ffzMouseMove.bind(inst);
inst.hoverResume = inst.ffzMouseLeave.bind(inst);
@ -624,18 +614,8 @@ export default class Scroller extends Module {
inst.ffzInstallHandler();
}
onUnmount() { // eslint-disable-line class-methods-use-this
const Mousetrap = this.web_munch.getModule('mousetrap') || window.Mousetrap;
if ( Mousetrap != null ) {
Mousetrap.unbind('alt', 'keydown');
Mousetrap.unbind('alt', 'keyup');
Mousetrap.unbind('shift', 'keydown');
Mousetrap.unbind('shift', 'keyup');
Mousetrap.unbind('ctrl', 'keydown');
Mousetrap.unbind('ctrl', 'keyup');
Mousetrap.unbind('command', 'keydown');
Mousetrap.unbind('command', 'keyup');
}
onUnmount(inst) { // eslint-disable-line class-methods-use-this
window.removeEventListener('keydown', inst.ffzHandleKey);
window.removeEventListener('keyup', inst.ffzHandleKey);
}
}