Add keyboard shortcut to showNewStatuses #369

Closed
opened 2019-02-17 17:57:38 +00:00 by nee · 3 comments
Member

Hello, it would be nice if I could see new notices by pressing a key instead of having to move the cursor on the Show new button and click on it.

I think twitter used the '.' button for this.

I tried to do it myself by adding @keydown.190="showNewStatuses && showNewStatuses()" to the button in src/components/timeline/timeline.vue, but that only works when the button is focused, which defeats the purpose.
And I don't know how to add a keybinding that works when anything except an input is focused in this framework.

Hello, it would be nice if I could see new notices by pressing a key instead of having to move the cursor on the Show new button and click on it. I think twitter used the '.' button for this. I tried to do it myself by adding @keydown.190="showNewStatuses && showNewStatuses()" to the button in src/components/timeline/timeline.vue, but that only works when the button is focused, which defeats the purpose. And I don't know how to add a keybinding that works when anything except an input is focused in this framework.
Member

Pleroma-fe doesn’t support any keyboard shortcuts currently, I think (see #148). But refreshing statuses like that would certainly be a cool feature.

Pleroma-fe doesn’t support any keyboard shortcuts currently, I think (see #148). But refreshing statuses like that would certainly be a cool feature.
Owner

I like hotkeys and would love to have a lot of them for smoother usage, but based on the feedback I've gotten from people when bringing up hotkeys, they should also be something that can be configured or at least disabled, many people like those vim-style browser extensions and it kinda overlaps in a bad way. optimally there'd be a hotkeys tab in settings where you can disable them if you want to, and set the keys to whatever, at minimum just a tickbox in the settings to disable otherwise hard-coded keys.

I like hotkeys and would love to have a lot of them for smoother usage, but based on the feedback I've gotten from people when bringing up hotkeys, they should also be something that can be configured or at least disabled, many people like those vim-style browser extensions and it kinda overlaps in a bad way. optimally there'd be a hotkeys tab in settings where you can disable them if you want to, and set the keys to whatever, at minimum just a tickbox in the settings to disable otherwise hard-coded keys.
Author
Member

Thank you very much for implementing and merging this. I've been using it for a while now and it made pleroma-fe much more comfortable. @edijs

Thank you very much for implementing and merging this. I've been using it for a while now and it made pleroma-fe much more comfortable. @edijs
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe#369
No description provided.