1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-30 12:30:52 +02:00
ttrss/js
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
..
AppBase.js Refactor hotkeys to use keypress instead of keydown 2019-03-11 12:01:27 +01:00
Article.js Article.unpack: add placeholder   if data-content is empty 2018-12-12 08:56:02 +03:00
common.js remove old fatalError(), move everything to App.Error 2018-12-11 13:18:38 +03:00
CommonDialogs.js remove separate classes for various panels, unify under .panel 2018-12-07 14:03:33 +03:00
CommonFilters.js filter test results: remove table bloat 2018-12-14 17:44:53 +03:00
Feeds.js Refactor hotkeys to use keypress instead of keydown 2019-03-11 12:01:27 +01:00
FeedStoreModel.js move to let/const syntax in custom dojo modules 2018-11-29 21:21:06 +03:00
FeedTree.js Feeds.catchupAllFeeds() should be Feeds.catchupAll() 2019-01-31 12:16:56 +03:00
Headlines.js Headlines.click: open original article (and mark as read) on alt click on title 2019-03-07 15:40:02 +03:00
index.html block listing of several util directories; deny access to config.php 2013-04-11 22:01:10 +04:00
PluginHost.js fix PluginHost run method. 2018-12-08 19:14:40 +01:00
PrefFeedStore.js define custom dojo modules with define() instead of require(), update startup module dependencies 2018-08-23 09:56:34 +03:00
PrefFeedTree.js css: insensitive -> text-muted 2019-03-08 10:11:57 +03:00
PrefFilterStore.js define custom dojo modules with define() instead of require(), update startup module dependencies 2018-08-23 09:56:34 +03:00
PrefFilterTree.js display filter tree rules as a list 2018-12-19 12:08:06 +03:00
PrefHelpers.js Revert "use codeflask for user css editor" 2018-12-11 20:48:17 +03:00
PrefLabelTree.js Fix two more typos 2018-12-08 11:02:39 +01:00
prefs.js Refactor hotkeys to use keypress instead of keydown 2019-03-11 12:01:27 +01:00
PrefUsers.js update notifications to make them more visible 2019-03-05 20:09:06 +03:00
tt-rss.js Refactor hotkeys to use keypress instead of keydown 2019-03-11 12:01:27 +01:00