Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle shift modifier to add/subtract selected cells. #156

Merged
merged 1 commit into from
May 23, 2019

Conversation

Zhurbin
Copy link
Contributor

@Zhurbin Zhurbin commented May 15, 2019

Handle shift modifier to add/subtract selected cells on keyboard and mouse events.

Issue: #105

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 93.385% when pulling 2798c50 on Zhurbin:feature/shift-key-handle into 894a4ea on nadbm:master.

@nadbm
Copy link
Owner

nadbm commented May 15, 2019

thank you @Zhurbin, will merge this asap

@nadbm nadbm merged commit fad12b8 into nadbm:master May 23, 2019

this._setState({
selecting: true,
start: e.shiftKey ? this.state.start : {i, j},
Copy link

Choose a reason for hiding this comment

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

The usage of this.state.start ignores the controlled version of selection.

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.

None yet

4 participants