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

Could web-console support meta keys? #323

Open
olivierlacan opened this issue Jan 7, 2023 · 2 comments
Open

Could web-console support meta keys? #323

olivierlacan opened this issue Jan 7, 2023 · 2 comments

Comments

@olivierlacan
Copy link

It's common in terminals to use a meta key (like alt/option) to modify other key inputs.

The most useful incarnation is holding alt/option when pressing arrow keys in order to easily jump to the previous or next word boundary when editing a long command.

Currently web-console ignores meta keys or modifiers when arrow keys are pressed.

It seems like the behavior defined here: https://github.com/olivierlacan/web-console/blob/891c363b60eee7c27ea4755e43ca2b54a4fbec9f/lib/web_console/templates/console.js.erb#L742-L753

Obviously looking at it quickly it seems like modifier keys could be handled to determine _caretPos. Do you think that's a good idea? Should I pursue it?

@gsamokovarov
Copy link
Collaborator

Please do! Any UX improvement here is greatly appreciated. The whole frontend needs a refresh but I have been ignoring it for way too long now.

@dubaaron
Copy link

dubaaron commented Jul 7, 2023

+1 to this ... it's hard to edit previously entered commands due to this; Home/End keys (on keyboards that have them) also don't seem to work.

Unless I'm missing some other way this can be done?

Have you started any work on this? If not, I might be willing to do this also, with some pointing in the right direction.

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

No branches or pull requests

3 participants