Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fix broken arpeggios with meta/ctrl keys #236

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

matthewwithanm
Copy link
Contributor

Description of the Change

We noticed that keybindings that partially matched arpeggios behaved pretty strangely. For example:

  1. Add a keybinding for ⌘K (which is a partial match for the "Pane: Split" commands)
  2. Type ⌘K
  3. Nothing happens, even after the partialMatchTimeout
  4. Type another key that rules out the partial matches (including ⌘K again)
  5. It's finally triggered.

If you've given up after step 3, 4 could happen a while later, after you've moved on. What's it doing? Some thing you forgot about 😄

This changes fixes the problem by scheduling the timeout not when an exact match was dispatched (which shouldn't be possible AFAIK), but when an exact match was found. I added a test to identify the case, which fails before the commit and passes after.

Copy link
Contributor

@maxbrunsfeld maxbrunsfeld left a comment

Choose a reason for hiding this comment

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

Nice fix! Thanks @matthewwithanm

@maxbrunsfeld maxbrunsfeld merged commit 7f93063 into master Dec 3, 2018
@maxbrunsfeld maxbrunsfeld deleted the fb-mdt-fix-arpeggios branch December 3, 2018 22:44
@maxbrunsfeld
Copy link
Contributor

Published in v8.2.12.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants