Skip to content

Could web-console support meta keys?  #323

@olivierlacan

Description

@olivierlacan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions