1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-30 12:30:52 +02:00
ttrss/plugins
Michael Kuhn e74f7bde22 Refactor hotkeys to use keypress instead of keydown
keydown returns the "raw" key in event.which. Depending on the keyboard
layout, this may not be what is wanted. For example, on a German
keyboard, Shift+7 has to be pressed to get a slash. However, event.which
will be 55, which corresponds to "7". In the keypress event, however,
event.which will be 47, which corresponds to "/".

Sadly, several important keys (such as escape and the arrow keys) do not
trigger a keypress event. Therefore, they have to be handled using a
keydown event.

This change refactors the hotkey support to make use of keypress events
whenever possible. This will make hotkeys work regardless of the user's
keyboard layout. Escape and arrow keys are still handled via keydown
events.

There should be only one change in behavior: I could not make Ctrl+/
work and therefore rebound the help dialog to "?".
2019-03-11 12:01:27 +01:00
..
af_comics remove separate classes for various panels, unify under .panel 2018-12-07 14:03:33 +03:00
af_fsckportal Use 'saveHTML' when generating HTML from a DOMDocument. 2017-09-09 13:51:59 -05:00
af_psql_trgm css: insensitive -> text-muted 2019-03-08 10:11:57 +03:00
af_readability plugins: update markup 2019-02-22 12:48:02 +03:00
af_redditimgur af_redditimgur: update prefs markup 2019-03-05 19:45:48 +03:00
af_tumblr_1280 Replace tumblr videos with HD versions 2018-07-14 19:16:40 +03:00
af_unburn update phpmd ruleset to use (subset) of cleancode 2017-04-26 20:57:36 +03:00
af_youtube_embed update phpmd ruleset to use (subset) of cleancode 2017-04-26 20:57:36 +03:00
af_zz_imgproxy add icons to accordion panels in preferences 2018-12-06 08:56:28 +03:00
af_zz_noautoplay plugins: run eslint const/let fixes 2018-11-30 08:39:45 +03:00
af_zz_vidmute fix af_zz_vidmute for new chrome breaking muting via setAttribute 2018-09-11 11:46:10 +03:00
auth_internal fill in some missing doctypes; use short doctype where it wasn't 2019-02-23 13:49:40 +03:00
auth_remote auth_remote: use PDO 2017-12-03 09:21:08 +03:00
auto_assign_labels auto_assign_labels: pass delimiter to preg_quote() to escape slashes properly 2018-02-23 13:31:08 +03:00
bookmarklets bookmarklets: add more info link 2019-02-26 08:15:58 +03:00
cache_starred_images debug logging system rework: 2018-11-30 08:34:29 +03:00
close_button close_button: use vector icon 2018-12-09 16:35:00 +03:00
googlereaderkeys Refactor hotkeys to use keypress instead of keydown 2019-03-11 12:01:27 +01:00
hotkeys_noscroll Refactor hotkeys to use keypress instead of keydown 2019-03-11 12:01:27 +01:00
import_export dialogs: use semantic markup instead of dlgsec stuff 2019-02-22 10:48:56 +03:00
mail dialogs: use semantic markup instead of dlgsec stuff 2019-02-22 10:48:56 +03:00
mailto dialogs: use semantic markup instead of dlgsec stuff 2019-02-22 10:48:56 +03:00
no_iframes update phpmd ruleset to use (subset) of cleancode 2017-04-26 20:57:36 +03:00
no_title_counters add PluginHost.HOOK_INIT_COMPLETE (and make no_title_counters use it) 2018-12-08 20:06:07 +03:00
no_url_hashes update phpmd ruleset to use (subset) of cleancode 2017-04-26 20:57:36 +03:00
note dialogs: use semantic markup instead of dlgsec stuff 2019-02-22 10:48:56 +03:00
nsfw add icons to accordion panels in preferences 2018-12-06 08:56:28 +03:00
search_sphinx pref-prefs: fix markup 2019-02-25 19:11:17 +03:00
share dialogs: use semantic markup instead of dlgsec stuff 2019-02-22 10:48:56 +03:00
shorten_expanded shorten_expanded: use dojo button, don't break attachment dropdown, other fixes 2018-12-07 22:56:34 +03:00
swap_jk update phpmd ruleset to use (subset) of cleancode 2017-04-26 20:57:36 +03:00
toggle_sidebar toggle_sidebar: switch icon on click 2019-03-06 12:52:09 +03:00
vf_shared remove vf_shared pixmap 2018-12-09 16:51:44 +03:00
index.html block listing of several util directories; deny access to config.php 2013-04-11 22:01:10 +04:00