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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ctrl+c to close WebView 馃嵕 #1287

Merged
merged 2 commits into from Dec 21, 2016
Merged

Fix ctrl+c to close WebView 馃嵕 #1287

merged 2 commits into from Dec 21, 2016

Conversation

ppot
Copy link
Contributor

@ppot ppot commented Dec 21, 2016

Add Keybinding
Keep caretComponent To prevent doom error.

close #392


handleKeyDown(e) {
if (e.ctrlKey && e.key === 'c') {
this.props.onURLAbort();
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we check here that there's an actual URL open?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could. But it's enabled only if there is one oppened.

@rauchg rauchg merged commit c7f195b into vercel:master Dec 21, 2016
@ppot ppot deleted the F/webv branch December 21, 2016 22:30
@ppot ppot mentioned this pull request Dec 21, 2016
@ppot ppot mentioned this pull request Jan 4, 2017
tylerong pushed a commit to tylerong/hyper that referenced this pull request Jul 3, 2017
* rm hyperCaretFocus => prevent callstask

* keep caret component
@ppot ppot mentioned this pull request Aug 8, 2017
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

2 participants