Open loic-sharma opened 11 months ago
Desktop apps often support keyboard shortcuts "chords" with multiple separate keypresses. Examples:
Ctrl+K
Ctrl+O
g
i
Add a new ShortcutActivator to support this. Strawman example:
ShortcutActivator
// Activated by Ctrl+K followed by Ctrl+O const openFolderActivator = ChordActivator( activators: <ShortcutActivator>[ SingleActivator(LogicalKeyboardKey.keyK, control: true), SingleActivator(LogicalKeyboardKey.keyO, control: true), ], ); return Shortcuts( shortcuts: const <ShortcutActivator, Intent>{ openFolderActivator: OpenFolderIntent(), }, child: ..., );
The triaged-desktop label is irrelevant if there is no team-desktop label or fyi-desktop label.
triaged-desktop
team-desktop
fyi-desktop
@gspencergoog Did you have any thoughts on sequences of keys in Shortcuts when you wrote it?
Is there an existing issue for this?
Use case
Desktop apps often support keyboard shortcuts "chords" with multiple separate keypresses. Examples:
Ctrl+K
Ctrl+O
opens a folderg
i
goes to the inboxProposal
Add a new
ShortcutActivator
to support this. Strawman example: