Open Search with Alt slash shortcut
Accept the physical slash key for exact Alt+/ delivery, including macOS Option dead-key values, while preserving existing Ctrl+/ and Command+/ behavior. Add focused regression coverage and document the verified checks.
This commit is contained in:
@@ -61,10 +61,13 @@ bool shellSearchShortcut(
|
||||
TargetPlatform? platform,
|
||||
}) =>
|
||||
event is KeyDownEvent &&
|
||||
event.logicalKey == LogicalKeyboardKey.slash &&
|
||||
shellPrimaryModifier(keyboard, platform: platform) &&
|
||||
!keyboard.isAltPressed &&
|
||||
!keyboard.isShiftPressed;
|
||||
!keyboard.isShiftPressed &&
|
||||
(shellPrimaryModifier(keyboard, platform: platform)
|
||||
? !keyboard.isAltPressed && event.logicalKey == LogicalKeyboardKey.slash
|
||||
: keyboard.isAltPressed &&
|
||||
!keyboard.isControlPressed &&
|
||||
!keyboard.isMetaPressed &&
|
||||
event.physicalKey == PhysicalKeyboardKey.slash);
|
||||
|
||||
const _digits = [
|
||||
LogicalKeyboardKey.digit1,
|
||||
|
||||
Reference in New Issue
Block a user