miniflux-legacy/assets/js
Mathias Kresin 0c3d8c787f use keyboardevent.key if implemented
Beside other stuff the main reason for this change is the circumstance
that Firefox triggers the "Toggle RTL mode" shortcut if the user press
F11 to switch Firefox into the fullscreen mode.

Each browser sends keycodes that are used by different other keys on
the keyboard for the function keys. Firefox is the only browser which
sends the onkeypress event for the function keys.

The used keyboard event properties event.keyCode and event.which are
already marked as deprecated and has been removed from the Web standards.

The "DOM Level 3 Events" standard specifies event.key as their successor.

Right now event.key is only available for Firefox 29+ and Internet
Explorer 9+. Webkit based browser have support for the former specified
event.keyIdentifier.

The implementation of event.keyIdentifier isn't the same across
different webkit based browsers and buggy:

- the value for the z key is F11 (Chrome - Windows, Linux)
- the value for the F11 key is F11 as well on (Chrome - Windows, Linux)
- the value for latin keys is always the value of the capital letter (Chrome)
- the value for cyrillic keys depends on the shift modifier (Chrome)
- the value for the keypress event is always an empty string (Safari - Mac OS)
- the value for the keydown event matches the keyboard layout dependent character (Safari - Mac OS)
- the value for the keydown event does NOT matches the keyboard layout dependent character (Chrome - Windows, Linux)

Instead of workaround the problems, the event.which is used for every
browser that doesn't support event.key.
2015-03-07 18:23:36 +01:00
..
all.min.js use keyboardevent.key if implemented 2015-03-07 18:23:36 +01:00
app.js implement frontend autoupdate 2015-01-28 05:26:55 +01:00
event.js use keyboardevent.key if implemented 2015-03-07 18:23:36 +01:00
feed.js update counter/rework redirect to unread on feeds page 2015-01-28 05:26:55 +01:00
item.js implement mark-feed-as-read in javascript 2015-03-01 19:56:28 +01:00
nav.js do not deselect the current item if no successor/predecessors exists 2014-11-20 10:46:34 +01:00
popup.js Remove Google auth (openid is deprecated) and Persona auth (useless) 2014-11-07 20:53:50 -05:00