#454 - Fixed inconsistencies in binding labels

This commit is contained in:
Simon Cambier
2025-04-02 12:13:10 +02:00
parent 40a073e2c8
commit f4ad7a9de1
2 changed files with 4 additions and 4 deletions

View File

@@ -52,7 +52,7 @@
let openInCurrentPaneKey: string = $state('') let openInCurrentPaneKey: string = $state('')
let createInNewPaneKey: string = $state('') let createInNewPaneKey: string = $state('')
let createInCurrentPaneKey: string = $state('') let createInCurrentPaneKey: string = $state('')
let openInNewLeafKey: string = getCtrlKeyLabel() + getAltKeyLabel() + '' let openInNewLeafKey: string = `${getCtrlKeyLabel()} ${getAltKeyLabel()}`
const selectedNote = $derived(resultNotes[selectedIndex]) const selectedNote = $derived(resultNotes[selectedIndex])
@@ -419,7 +419,7 @@
<span>to insert a link</span> <span>to insert a link</span>
</div> </div>
<div class="prompt-instruction"> <div class="prompt-instruction">
<span class="prompt-instruction-command">Ctrl g</span> <span class="prompt-instruction-command">{getCtrlKeyLabel()} g</span>
<span>to toggle excerpts</span> <span>to toggle excerpts</span>
</div> </div>
<div class="prompt-instruction"> <div class="prompt-instruction">

View File

@@ -120,7 +120,7 @@ abstract class OmnisearchModal extends Modal {
}) })
// Open in background // Open in background
this.scope.register(['Ctrl'], 'O', e => { this.scope.register(['Mod'], 'O', e => {
if (!isInputComposition()) { if (!isInputComposition()) {
// Check if the user is still typing // Check if the user is still typing
e.preventDefault() e.preventDefault()
@@ -144,7 +144,7 @@ abstract class OmnisearchModal extends Modal {
}) })
// Context // Context
this.scope.register(['Ctrl'], 'G', _e => { this.scope.register(['Mod'], 'G', _e => {
eventBus.emit(EventNames.ToggleExcerpts) eventBus.emit(EventNames.ToggleExcerpts)
}) })
} }