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

Support custom keybindings #118

Closed
Tyriar opened this issue Jun 10, 2016 · 2 comments
Closed

Support custom keybindings #118

Tyriar opened this issue Jun 10, 2016 · 2 comments
Labels
type/enhancement Features or improvements to existing features

Comments

@Tyriar
Copy link
Member

Tyriar commented Jun 10, 2016

Raised from a discussion in #107, I would like to eventually let vscode users to be able to configure keybindings for:

What I'm thinking is allowing consumers of xterm.js to be able to plug key -> escape sequence mappings into evaluateKeyEscapeSequence. This could return the same result interface if there is a match otherwise undefined.

@parisk
Copy link
Contributor

parisk commented Jun 14, 2016

I was thinking that an interesting solution would be offloading the copy/paste functionality to an addon, so as to be able to apply any functionality programmatically on top of the core terminal.

@Tyriar
Copy link
Member Author

Tyriar commented Jun 14, 2016

@parisk exposing some API like Terminal.prototype.registerKeyMappings(event) would be good, then that can be used by both addons for common customizations like copy and paste and also lets consumers do whatever they want with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Features or improvements to existing features
Projects
None yet
Development

No branches or pull requests

2 participants