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

Wrong sequence on alt + arrow #239

Closed
parisk opened this issue Aug 22, 2016 · 2 comments
Closed

Wrong sequence on alt + arrow #239

parisk opened this issue Aug 22, 2016 · 2 comments
Labels
type/bug Something is misbehaving

Comments

@parisk
Copy link
Contributor

parisk commented Aug 22, 2016

Pressing Alt + any arrow prints a character, instead of moving word backwards/forward etc.

Example: The terminal sends the \x1b[1;3D sequence, instead of \x1bb or \x1b[5D on Alt + (which seem to do the work).

Details

  • Browser and browser version: Chrome 52 on OS X
  • OS version: OS X El Capitan
  • xterm.js version: 4c3ccc2

Steps to reproduce

  1. Type a command (e.g. ls -la)
  2. Hit Alt +
  3. Expected: Cursor move to l (in la). Result: D gets printed.
@parisk parisk added the type/bug Something is misbehaving label Aug 22, 2016
parisk added a commit that referenced this issue Aug 22, 2016
@ayapi
Copy link
Contributor

ayapi commented Aug 26, 2016

@parisk
i think it should implement with customKeydownHandler on userland.
the reason why is, we can't use each keymaps properly under 8324b43.
for example, my personal config in Vim is,
ctrl+left/right back/forward word
alt+arrow move cursor between splitted windows
however, now, i can't use alt+arrow for move windows...

@Tyriar
Copy link
Member

Tyriar commented Aug 26, 2016

Yeah I agree. It's pretty easy to hook up a handler if you want it in Sourcelair. We could even consider allowing multiple handlers and putting this in an addon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is misbehaving
Projects
None yet
Development

No branches or pull requests

3 participants