Skip to content

Treat unbound keys as no-op - #1855

Merged
mkrnr merged 2 commits into
opensteno:mainfrom
toyboot4e:fix/issue-1850
Jul 23, 2026
Merged

Treat unbound keys as no-op#1855
mkrnr merged 2 commits into
opensteno:mainfrom
toyboot4e:fix/issue-1850

Conversation

@toyboot4e

Copy link
Copy Markdown
Contributor

Summary of changes

Treat unbound keys as no-op. It's slightly kinder to machine developers.

Closes #1850, #1629

  • If the user machine emits a key out of range, it would still fail like AssertionError: 'k9' not in OrderedDict({...}). Maybe that's ok for now.

Pull Request Checklist

  • Changes have tests
  • News fragment added in news.d. See documentation for details

@toyboot4e toyboot4e changed the title Treat unbound key as no-op Treat unbound keys as no-op Jul 21, 2026

@mkrnr mkrnr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! I like the approach and it's already a good improvement.

Just some small remarks regarding the news file.

Comment thread news.d/bugfix/1850.dict Outdated
@@ -0,0 +1 @@
Treat unbound keys as no-op

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some trivial points:

  • the file is missing the .md ending
  • I'd rather put it in core instead of dict since it's not modifying the dictionary
  • The text should end with a period

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.. I've applied the three points in 0104f10.

@toyboot4e
toyboot4e requested a review from mkrnr July 23, 2026 09:40
@mkrnr
mkrnr merged commit 2100581 into opensteno:main Jul 23, 2026
18 checks passed
@toyboot4e

Copy link
Copy Markdown
Contributor Author

Sorry, it closes #1629, too. It's still open due to my PR comment mistake.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyError when pressing a physical key is pressed that isn't in the system keymap.

2 participants