+
+
+
+ Press Desire Key Combination & press Enter or press
+ ESC to cancel.
+
+
+
+
+
+
+ Command
+ Keymapping
+
+
+
@@ -82,6 +117,8 @@ import { onMounted, onUpdated, ref } from '@vue/runtime-core'
const SimulatorState = useState()
const keyOptions = ref([])
const targetPref = ref(null)
+const search = ref('');
+
onMounted(() => {
SimulatorState.dialogBox.customshortcut_dialog = false
@@ -95,6 +132,13 @@ onUpdated(() => {
} else setDefault()
})
+const searchCommand=()=>{
+ if(!search.value) return [];
+ const searchResult = keyOptions.value.filter((target)=>{
+ return target[0].toLowerCase().includes(search.value.toLowerCase());
+ })
+ return searchResult;
+}
function updatePreference(e) {
$('#pressedKeys').text('')
$('#warning').text('')
@@ -154,11 +198,11 @@ function updateEdit(e) {
$('#pressedKeys').text(currentKey)
}
if (
- ($('#pressedKeys').text().split(' + ').length === 2 &&
+ ($('#pressedKeys').text().split(' + ').length === 2 &&
['Ctrl', 'Meta'].includes(
- $('#pressedKeys').text().split(' + ')[1]
+ $('#pressedKeys').text().split(' + ')[1]
)) ||
- ($('#pressedKeys').text().split(' + ')[0] === 'Alt' &&
+ ($('#pressedKeys').text().split(' + ')[0] === 'Alt' &&
$('#pressedKeys').text().split(' + ')[1] === 'Shift')
) {
$('#pressedKeys').text(
diff --git a/src/styles/css/shortcut.panel.css b/src/styles/css/shortcut.panel.css
index 09e5cf34..319a3193 100644
--- a/src/styles/css/shortcut.panel.css
+++ b/src/styles/css/shortcut.panel.css
@@ -40,6 +40,7 @@
}
#customShortcutDialog {
+ width: 600px;
align-items: center;
color: white;
flex-direction: column;