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

Submit Flux script with Ctrl-Enter keybinding #4560

Merged
merged 1 commit into from Oct 5, 2018
Merged

Submit Flux script with Ctrl-Enter keybinding #4560

merged 1 commit into from Oct 5, 2018

Conversation

chnn
Copy link
Contributor

@chnn chnn commented Oct 5, 2018

Copy link
Contributor

@OfTheDelmer OfTheDelmer left a comment

Choose a reason for hiding this comment

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

NICE!


if (ctrlKey && key === ' ') {
this.showAutoComplete()

return
}

if (ctrlKey || metaKey || EXCLUDED_KEYS.includes(key)) {
if (ctrlKey && key === 'Enter') {
Copy link
Contributor

Choose a reason for hiding this comment

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

We could almost switch/case on key :)

@chnn chnn merged commit fa1e19a into master Oct 5, 2018
@chnn chnn deleted the moar-flux branch October 5, 2018 23:30
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