Skip to content

feat: more flexible keybinding parser#213

Merged
tlambert03 merged 5 commits intopyapp-kit:mainfrom
tlambert03:flexible-parser
Jul 11, 2024
Merged

feat: more flexible keybinding parser#213
tlambert03 merged 5 commits intopyapp-kit:mainfrom
tlambert03:flexible-parser

Conversation

@tlambert03
Copy link
Copy Markdown
Member

@tlambert03 tlambert03 commented Jul 11, 2024

closes #209

modifier keys can now be expressed as:

_re_ctrl = re.compile(r"(ctrl|control|ctl|⌃)[\+|\-]")
_re_shift = re.compile(r"(shift|⇧)[\+|\-]")
_re_alt = re.compile(r"(alt|opt|option|⌥)[\+|\-]")
_re_meta = re.compile(r"(meta|super|win|windows|⊞|cmd|command|⌘)[\+|\-]")

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (e527101) to head (48e14fe).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #213   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines         1835      1814   -21     
=========================================
- Hits          1835      1814   -21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

Expand keybind parsing options from string

1 participant