Add support for keyboard navigation in theme switcher#8167
Add support for keyboard navigation in theme switcher#8167Inverle wants to merge 2 commits intoFreshRSS:edgefrom
Conversation
I am more surprised that it works in other browsers. If I am not mistaken, I think the underlying method to change style should be reworked to be simpler and more semantically valid. We can merge here in the meantime, but it adds to something that is not so nice. |
| // Keyboard support for theme switcher navigation | ||
| const wrapper = parent.querySelector('div.theme-preview-list-wrapper'); | ||
| if (wrapper) { | ||
| wrapper.addEventListener('keypress', function (e) { |
There was a problem hiding this comment.
keypress is deprecated: https://developer.mozilla.org/en-US/docs/Web/API/Element/keypress_event
There was a problem hiding this comment.
Keydown is preferable for most things anyway. Keyup/press just adds a bit of extra delay.
|
Yes, I'd rather avoid such complications and just simplify it to a |
I'm gonna make a second PR for the |
Follow-up (or replacement) of #8167 
Partially solves issue (navigating with keyboard) described in #8152 (comment)
The JS part doesn't work in SeaMonkey, I have not investigated why.