only allow a single boost via hotkey - fixes #467 #468
As usual, have to write the same thing four times☹️ The parentheses around `q` tell the hotkey/keymap code to ignore auto-repeat events (which works fine in Chrome but not in Firefox, I reported the bug https://bugzilla.mozilla.org/show_bug.cgi?id=1900397 ) In addition, I've added a guard variable that is true while calling the backend to boost/renote, and false otherwise. This way, even in Firefox we don't spam-boost. Unboosting is still *only with the mouse*, I have not added that functionality.
Showing
- packages/frontend/src/components/MkNote.vue 5 additions, 3 deletionspackages/frontend/src/components/MkNote.vue
- packages/frontend/src/components/MkNoteDetailed.vue 5 additions, 3 deletionspackages/frontend/src/components/MkNoteDetailed.vue
- packages/frontend/src/components/SkNote.vue 5 additions, 3 deletionspackages/frontend/src/components/SkNote.vue
- packages/frontend/src/components/SkNoteDetailed.vue 5 additions, 3 deletionspackages/frontend/src/components/SkNoteDetailed.vue
Loading
Please register or sign in to comment