[nodebb-plugin-shortcuts] Browse NodeBB by Keyboard
bump. @julian didn't you want to re-activate this plugin here? still waiting for it Or did another bug appear?
@frissdiegurke Mmm, noticed just now that this plugin interferes with page searching. I tried searching "HAR" and the page reloaded
Any chance it can detect when the "find in page" dialog is open?
@julian Are you able to reproduce this step by step? It happens to me only sometimes (sth. like only at topics where I selected a post that forces infinite scroll to trigger and there only after pressing 'r' first). When it happens it seems like the 'a' (or 'A') closes the search-box somehow, because of this the 'r'/'R' gets interpreted by my plugin.
Basically I'm just using 'keydown' events (via jquery call), if I log there doesn't happen anything while focus is on browser-side search box.
So I have no clue why the 'a' closes this search-box sometimes (seems to be chromium only, fx doesn't close it in any test-case)...
@frissdiegurke Good point, I didn't refresh to ensure that it happened 100% of the time... now that I try again, I can't reproduce it
Edit: Actually, I can, once the page has loaded via infinite scroll at least once... then hitting "r" while search dialog is open seems to close the search dialog and go to top of page...?
@julian Are you testing with chrome(/chromium) too or does it happen in fx there?
Maybe it's a bug of chrome itself and/or sth. within infinite-scrolling code
Hey, now I'm noticing that it happens more often on the letter X...
You don't need to trigger infinite scroll, just open the find dialog, and toggle between
bksp, and it'll trigger eventually.
I guess it triggers when the next match isn't visible so it has to scroll. it does scroll to the match when closing the search
@julian maybe it's because of the url-change on scrolling if a state gets pushed (new post visible). So chrome closes the search on pushstate... would need some more specific tests I don't want to do now
@frissdiegurke Good catch! You're right, when I have the search dialog open and scroll up/down, it goes away once the url changes... hmmm
@julian that problem seems to be fixed now just for interest, have you changed anything or have the google guys fixed it?
Anyways: I've updated to provide a shortcut for the new groups-page and selection-functionality within.
I'd love to see this plugin back in use on this community (since the main target of all my plugins is this community xD ) - the 0.6.x issues have been fixed shortly after 0.6.0 arrival months ago
Updated (completely reworked, plain JS now) to NodeBB
0.9.0and current lavender and persona themes.
Also transferred to https://github.com/NodeBB-Community/nodebb-plugin-shortcuts
Great news folks,
@julian has installed (once again) this plugin on this board
?to see how to get started...
Some notes for myself:
- Implement Konami Code
- Force input-selection after chat selection was triggered
- Fix cards on categories page selection actions to refer to topic instead of category (might be best to fix within theme?
component="categories/category"is misleading there @psychobunny )
EDIT: removed some notes for myself that got their individual issues within github.
Oh, a Konami code, eh? One wonders what it will do...
Kowlin last edited by Kowlin
Shouldn't Alt+Shift+A (Admin menu) be hidden for users who aren't admins?
@Kowlin indeed, it should.
This plugin has compatibility issues with Macintosh keyboards.
Normally, "Alt+L" creates the
@character (which we need for pinging users @frissdiegurke), however due to this plugin "Alt+L" inserts a list into the posting, which is nice but definitely not what I want right now (desperately copy-pasting @ from outside nodeBB sucks).
@phl Already fixed a month ago https://github.com/NodeBB-Community/nodebb-plugin-shortcuts/issues/6
@administrators please reset to default bindings or update that particular one by hand. Thanks!
@frissdiegurke updated. What about the
upkey in chat modal?