-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(files): add keyboard shortcuts #49432
Conversation
75f8d4b
to
1c44235
Compare
This comment was marked as resolved.
This comment was marked as resolved.
f6eb690
to
7a278b6
Compare
Alright, first PR is ready. |
TIL, thanks :) |
Totally agree! But this is not really related to this PR. |
7a278b6
to
0eaa520
Compare
0eaa520
to
4b460ae
Compare
5223668
to
6e9de1b
Compare
…rtcut Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
6e9de1b
to
7cc1c90
Compare
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
7cc1c90
to
8cd679f
Compare
// Trick to detect if the action was called from a keyboard event | ||
// we need to make sure the method calling have its named containing 'keydown' | ||
// here we use `onKeydown` method from the FileEntryActions component | ||
const callStack = new Error().stack || '' | ||
const isCalledFromEventListener = callStack.toLocaleLowerCase().includes('keydown') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option would be to have two actions, delete
and deleteWithConfirmation
@artonge yeah, I might revisit this later tbh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀🚀🚀
Fix #1444
Fix #30484
Shortcuts
### Selection - [x] Select all - [x] Unselect all - [x] Select/unselect current fileActions
Navigation
Usability
Later
Status