命令编辑器按钮添加键盘快捷键标签

This commit is contained in:
fofolee 2025-02-15 13:40:40 +08:00
parent d239953125
commit 49631ac60d

View File

@ -194,7 +194,7 @@
flat flat
color="primary" color="primary"
icon="play_arrow" icon="play_arrow"
label="运行" :label="`运行(${ctrlKey}B)`"
@click="$emit('action', 'run')" @click="$emit('action', 'run')"
></q-btn> ></q-btn>
<q-btn <q-btn
@ -205,7 +205,7 @@
flat flat
dense dense
icon="save" icon="save"
label="保存" :label="`保存(${ctrlKey}S)`"
@click="$emit('action', 'save')" @click="$emit('action', 'save')"
></q-btn> ></q-btn>
</q-btn-group> </q-btn-group>
@ -254,6 +254,7 @@ export default {
commandTypes, commandTypes,
isSettingsVisible: false, isSettingsVisible: false,
showUserData: false, showUserData: false,
ctrlKey: utools.isMacOs ? "⌘" : "⌃",
}; };
}, },
computed: { computed: {