[nodebb-plugin-shortcuts] Browse NodeBB by Keyboard
-
@frissdiegurke said:
Fixed. Maybe it was not the best idea to add an own scroll-area to the bootbox ^^
Ah, I remember why I did that:
within Vanilla theme there is no scrolling otherwise, it gets cut off by screen height @psychobunny could you fix that please? -
Sorry @frissdiegurke what do you mean?
-
-
Haha weird, I wonder why that was even there in the first place. Removed it
BTW I think you won plugin weekend
-
(haha but there's only one eligible entrant)
-
@frissdiegurke Hmm...
TypeError: Cannot call method 'apply' of undefined at /var/www/community.nodebb.org/node_modules/nodebb-plugin-shortcuts/services/Configuration.js:1:2764 at /var/www/community.nodebb.org/src/meta.js:79:6
On plugin activation. Reported upstream: frissdiegurke/nodebb-plugin-shortcuts#1
-
Should be fixed now...
-
@julian said:
I believe the latest version does not contain the settings module code that was merged this morning
correct
-
bump. @julian didn't you want to re-activate this plugin here? still waiting for it Or did another bug appear?
-
@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 -
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