You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tt-rss/include
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 "?".
6 years ago
..
autoload.php autoloader: check if class name is namespaced before trying to split it 6 years ago
colors.php remove some redundant php closing tags 8 years ago
controls.php add hotkey (a N) to toggle night.css 6 years ago
db-prefs.php remove some redundant php closing tags 8 years ago
db.php remove some redundant php closing tags 8 years ago
errorhandler.php remove some redundant php closing tags 8 years ago
functions.php Refactor hotkeys to use keypress instead of keydown 6 years ago
login_form.php login: switch to absolute redirect urls 6 years ago
sanity_check.php login: switch to absolute redirect urls 6 years ago
sanity_config.php sanity config: fix typo 6 years ago
sessions.php fix session write handler always assuming that database entry exists and failing silently if it doesn't; remove session cookie-related hacks 6 years ago
version.php should be 19.2, duh 6 years ago