Skip to content

fix(hotkey): add delimiter aliases without delimiter ambiguity#22635

Merged
J-Sek merged 5 commits intomasterfrom
matthewary/useHotkey-support+
Mar 8, 2026
Merged

fix(hotkey): add delimiter aliases without delimiter ambiguity#22635
J-Sek merged 5 commits intomasterfrom
matthewary/useHotkey-support+

Conversation

@MatthewAry
Copy link
Copy Markdown
Contributor

@MatthewAry MatthewAry commented Feb 20, 2026

Details

  • add plus as a hotkey alias so literal + can be bound without treating + as interchangeable with delimiters
  • add slash as a hotkey alias so literal / can be bound without treating / as interchangeable with delimiters
  • add underscore as a hotkey alias so literal _ can be bound without treating _ as interchangeable with delimiters
  • keep delimiter syntax strict (+, _, / for combinations and - for sequences), and add regression coverage for ambiguous patterns like alt+++b+h
  • update hotkey docs to explicitly describe delimiter behavior and alias-based literal delimiter keys

Fixes #22399

Preserve unambiguous parsing by keeping delimiter characters syntax-only while allowing literal '+' via aliases. Also document delimiter rules and cover the new behavior with parser, composable, and component tests.
Remove explicit '+' display map entry because alias normalization already resolves plus and unknown keys render safely via text fallback.
@MatthewAry MatthewAry changed the title fix(hotkey): support plus alias without delimiter ambiguity fix(hotkey): add delimiter aliases without delimiter ambiguity Feb 20, 2026
@MatthewAry MatthewAry requested a review from J-Sek February 20, 2026 21:13
@MatthewAry MatthewAry marked this pull request as ready for review February 20, 2026 21:14
Add support for 'slash' and 'underscore' as aliases for literal keys, improving the hotkey parsing functionality. Update documentation to reflect these changes and clarify delimiter syntax rules. Enhance tests to cover new alias behavior and ensure proper handling of key combinations.
@AndreyYolkin
Copy link
Copy Markdown
Contributor

AndreyYolkin commented Feb 20, 2026

I think it's worth to update https://github.com/vuetifyjs/0 as well, it's based mostly on big vuetify implementation

MatthewAry and others added 2 commits February 20, 2026 14:46
Wrap the delimiter validation condition for slash support to comply with project max-len rules without changing behavior.
@J-Sek J-Sek added T: bug Functionality that does not work as intended/expected E: hotkey C: VHotkey labels Mar 8, 2026
@J-Sek J-Sek merged commit a639698 into master Mar 8, 2026
16 checks passed
@J-Sek J-Sek deleted the matthewary/useHotkey-support+ branch March 8, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C: VHotkey E: hotkey T: bug Functionality that does not work as intended/expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report][3.11.2] Hotkeys with + and -

3 participants