Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/files/src/components/FileEntry/FileEntryActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,9 @@ export default defineComponent({
this.openedMenu = false
}

// a open the action menu
if (event.key === 'a' && !this.openedMenu) {
// Otherwise it's the `a` hotkey: open the action menu
// (matched by physical key, event.key may differ on non-Latin layouts, e.g. 'ф')
if (event.key !== 'Escape' && !this.openedMenu) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, any keys will open the actions menu ? 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, onKeyDown is only called by the two useHotKey bindings (Escape and a), so anything that isn't Escape here is the a key. On a Russian layout event.key is "ф", which is why the old === 'a' check never passed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the comment above it then ? :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the comment, thanks!

this.openedMenu = true
}
},
Expand Down