Skip to content

Commit

Permalink
Merge pull request #40924 from AIlkiv/shortcut-ctrl-f-for-different-k…
Browse files Browse the repository at this point in the history
…eyboard-layouts

Shortcut Ctrl+F for different keyboard layouts
  • Loading branch information
susnux authored Oct 19, 2023
2 parents 694352e + 51ff16e commit f4e3f09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/views/UnifiedSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export default {
document.addEventListener('keydown', (event) => {
// if not already opened, allows us to trigger default browser on second keydown
if (event.ctrlKey && event.key === 'f' && !this.open) {
if (event.ctrlKey && event.code === 'KeyF' && !this.open) {
event.preventDefault()
this.open = true
} else if (event.ctrlKey && event.key === 'f' && this.open) {
Expand Down
4 changes: 2 additions & 2 deletions dist/core-unified-search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-unified-search.js.map

Large diffs are not rendered by default.

0 comments on commit f4e3f09

Please sign in to comment.