Select list items with Command + number.

This commit is contained in:
2025-02-09 19:26:29 -08:00
parent 25ef392634
commit bba267f37d
3 changed files with 16 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ final class EditableNSTextField: NSTextField {
if NSApp.sendAction(#selector(NSResponder.selectAll(_:)), to: nil, from: self) {
return true
}
} else if isNumericalCode(key) { // Ignore Command + {1-9}.
return true
}
} else if modsContains(keys: OSCmd | OSShift, in: modifiers) {
if key == kVK_ANSI_Z {