feat: add keyboard shortcuts #649
No reviewers
Labels
No Label
1000k
100k
10k
200k
20k
500k
50k
5k
75k
backend
blocked:design
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
scope:intl
scope:nip
scope:query_tracing
scope:ux
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Kieran/snort#649
Loading…
Reference in New Issue
No description provided.
Delete Branch "fernandoporazzi/snort:scroll-up-shortcut"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Twitter has some keyboard shortcuts I make use of sometimes. Maybe it's nice to have it on Snort too.
I implemented 3 of them.
n
= opens new post forms
= focus on the search input.
= scroll to the top of the pageThe hook I created is quite easy to reason about and with it we can add even more shortcuts when needed.
I feel like it would be cool to document the possibilities and capabilities of Snort somewhere, maybe under a new url(
snort.social/settings/about
)??Yes on the about page, it would also be good to put a changelog in code so people can see what is changed and what version of snort they are using
ref: #195
@ -500,1 +500,4 @@
}
export function isFormElement(target: HTMLElement): boolean {
if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) {
what about
select
I thought about it... Actually this is the complete list of form elements:
Shall we support them all?
Probably ok for now