fix(stage-tamagotchi): Shift+Alt+R conflicted with report of webview

This commit is contained in:
Ayaka Neko
2025-08-21 01:25:08 +08:00
parent a2180626ae
commit a988ba2512
2 changed files with 10 additions and 10 deletions
@@ -16,9 +16,9 @@ const {
s,
v_u_e,
u_s_e,
Shift_Alt_i,
Shift_Alt_r,
shift_Alt_n,
i_Shift_Alt,
a_Shift_Alt,
n_Shift_Alt,
current,
} = useMagicKeys({ target: eventTarget })
const keys = computed(() => Array.from(current))
@@ -101,13 +101,13 @@ const Key = defineComponent({
</div>
<div class="mt-3 flex flex-col items-center gap-3">
<Key :value="Shift_Alt_i">
<Key :value="i_Shift_Alt">
Shift + Alt + I
</Key>
<Key :value="Shift_Alt_r">
Shift + Alt + R
<Key :value="a_Shift_Alt">
Shift + Alt + A
</Key>
<Key :value="shift_Alt_n">
<Key :value="n_Shift_Alt">
Shift + Alt + N
</Key>
</div>
@@ -73,7 +73,7 @@ export const useShortcutsStore = defineStore('shortcuts', () => {
const shortcuts = ref([
{
name: 'tamagotchi.settings.pages.themes.window-shortcuts.toggle-move.label',
shortcut: useVersionedLocalStorage('shortcuts/window/move', 'Shift+Alt+N'), // Shift + Alt + N
shortcut: useVersionedLocalStorage('shortcuts/window/move', 'Shift+Alt+N', { defaultVersion: '1.0.2', satisfiesVersionBy: v => v !== '1.0.2', onVersionMismatch: () => ({ action: 'reset' }) }), // Shift + Alt + N
group: 'window',
type: 'move',
handle: async () => {
@@ -83,7 +83,7 @@ export const useShortcutsStore = defineStore('shortcuts', () => {
},
{
name: 'tamagotchi.settings.pages.themes.window-shortcuts.toggle-resize.label',
shortcut: useVersionedLocalStorage('shortcuts/window/resize', 'Shift+Alt+R'), // Shift + Alt + R
shortcut: useVersionedLocalStorage('shortcuts/window/resize', 'Shift+Alt+A', { defaultVersion: '1.0.2', satisfiesVersionBy: v => v !== '1.0.2', onVersionMismatch: () => ({ action: 'reset' }) }), // Shift + Alt + A
group: 'window',
type: 'resize',
handle: async () => {
@@ -93,7 +93,7 @@ export const useShortcutsStore = defineStore('shortcuts', () => {
},
{
name: 'tamagotchi.settings.pages.themes.window-shortcuts.toggle-ignore-mouse-event.label',
shortcut: useVersionedLocalStorage('shortcuts/window/debug', 'Shift+Alt+I'), // Shift + Alt + I
shortcut: useVersionedLocalStorage('shortcuts/window/debug', 'Shift+Alt+I', { defaultVersion: '1.0.2', satisfiesVersionBy: v => v !== '1.0.2', onVersionMismatch: () => ({ action: 'reset' }) }), // Shift + Alt + I
group: 'window',
type: 'ignore-mouse-event',
handle: async () => {