Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Fix #2466 by increasing MAX_CHORD_SIZE to prevent key swallowing #2577

Merged
merged 1 commit into from
Oct 5, 2018

Conversation

Pireax
Copy link
Contributor

@Pireax Pireax commented Sep 19, 2018

The issue is in getRecentKeyPresses of the InputManager, this returns the first 4 key presses and swallows newer key presses when typing quickly. The swallowing of the keys is based on the MAX_CHORD_SIZE, setting this to 5 fixed the issue for me. To be sure I increased MAX_CHORD_SIZE to 6.

@akinsho
Copy link
Member

akinsho commented Oct 3, 2018

@Pireax thanks for the PR much appreciated. We had an issue with builds on master would you be able to merge or rebase master and repush this branch?

@Pireax
Copy link
Contributor Author

Pireax commented Oct 4, 2018

Yeah, sure thing

@codecov
Copy link

codecov bot commented Oct 4, 2018

Codecov Report

Merging #2577 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2577   +/-   ##
======================================
  Coverage    45.3%   45.3%           
======================================
  Files         361     361           
  Lines       14571   14571           
  Branches     1912    1912           
======================================
  Hits         6601    6601           
  Misses       7746    7746           
  Partials      224     224
Impacted Files Coverage Δ
browser/src/Services/InputManager.ts 92.2% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15a2ca9...8eed153. Read the comment docs.

Copy link
Member

@akinsho akinsho left a comment

Choose a reason for hiding this comment

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

👍

@akinsho akinsho merged commit b31243d into onivim:master Oct 5, 2018
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