Skip to content

Capture file operation key shortcuts #294

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

Closed
Bert-Proesmans opened this issue Apr 8, 2018 · 2 comments
Closed

Capture file operation key shortcuts #294

Bert-Proesmans opened this issue Apr 8, 2018 · 2 comments
Labels
enhancement Something new the playground could do help wanted Not immediately going to be prioritized — ask for mentoring instructions!

Comments

@Bert-Proesmans
Copy link

I don't know the policy on capturing key combos within the playground.
The idea came from personally struggling, so I'm strongly biased.

Because of muscle memory the key combination [Ctrl] + [S] is pressed about 5 times per session. This opens the save file dialog for completing the task of saving the current page (HTML) and loaded resources to the local disk.
Is it possible to catch these key combo events within the playground and prevent them from bubbling up to the browser? Is this (semantically) correct to do? Are there other file operation shortcuts which might benefit from capturing?

Why?
The playground looks like an editor and feels like a mini-IDE. Capturing specific file operation key combos might become semantically correct for this reason. The browser (tab) is repurposed to be a code editor.

@shepmaster
Copy link
Member

Is it possible to catch these key combo events within the playground and prevent them from bubbling up to the browser? Is this (semantically) correct to do? Are there other file operation shortcuts which might benefit from capturing?

Yes, it's possible to capture specific types of keychords.

@shepmaster shepmaster added enhancement Something new the playground could do help wanted Not immediately going to be prioritized — ask for mentoring instructions! labels Apr 9, 2018
@shepmaster
Copy link
Member

shepmaster commented Apr 9, 2018

Support for this will probably happen after the header rewrite and corresponding shortcuts for the tools. Unclear if this specific keyboard shortcut will be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something new the playground could do help wanted Not immediately going to be prioritized — ask for mentoring instructions!
Projects
None yet
Development

No branches or pull requests

2 participants