Skip to content

Commit

Permalink
hotkeys: add russian letters for components inspector support
Browse files Browse the repository at this point in the history
  • Loading branch information
d9k committed Jul 17, 2024
1 parent 7911614 commit 65022f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export default defineComponent({
onKeyDown((event) => {
// ƒ,ß,® - these are the result keys in Mac with altKey pressed
if ((event.key === 'f' || event.key === 'ƒ') && event.altKey) {
if (((['f', 'ƒ', 'а']).includes(event.key)) && event.altKey) {
treeFilterInput.value.focus()
return false
}
else if ((event.key === 's' || event.key === 'ß') && event.altKey && !pickingComponent.value) {
else if ((['s', 'ß', 'ы']).includes(event.key) && event.altKey && !pickingComponent.value) {
startPickingComponent()
return false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default defineComponent({
const stateFilterInput = ref()
onKeyDown((event) => {
// ∂ - the result key in Mac with altKey pressed
if ((event.key === 'd' || event.key === '') && event.altKey) {
if ((['d', '', 'в'].includes(event.key)) && event.altKey) {
stateFilterInput.value.focus()
return false
}
Expand Down

0 comments on commit 65022f7

Please sign in to comment.