Skip to content

Commit 65022f7

Browse files
committed
hotkeys: add russian letters for components inspector support
1 parent 7911614 commit 65022f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/app-frontend/src/features/components/ComponentsInspector.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ export default defineComponent({
4343
4444
onKeyDown((event) => {
4545
// ƒ,ß,® - these are the result keys in Mac with altKey pressed
46-
if ((event.key === 'f' || event.key === 'ƒ') && event.altKey) {
46+
if (((['f', 'ƒ', 'а']).includes(event.key)) && event.altKey) {
4747
treeFilterInput.value.focus()
4848
return false
4949
}
50-
else if ((event.key === 's' || event.key === 'ß') && event.altKey && !pickingComponent.value) {
50+
else if ((['s', 'ß', 'ы']).includes(event.key) && event.altKey && !pickingComponent.value) {
5151
startPickingComponent()
5252
return false
5353
}

packages/app-frontend/src/features/components/SelectedComponentPane.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default defineComponent({
3434
const stateFilterInput = ref()
3535
onKeyDown((event) => {
3636
// ∂ - the result key in Mac with altKey pressed
37-
if ((event.key === 'd' || event.key === '') && event.altKey) {
37+
if ((['d', '', 'в'].includes(event.key)) && event.altKey) {
3838
stateFilterInput.value.focus()
3939
return false
4040
}

0 commit comments

Comments
 (0)