Blink: alt key combinations not working

Created on 23 Mar 2017  Â·  5Comments  Â·  Source: blinksh/blink

alt key combinations, with or without remapping to esc, are not working as expected, as in the "Use Option as Meta key" in Apple Terminal.

I expect:
alt-f/alt-b to move forward and backward over a word
alt-d to delete the word ahead.
... readline/emacs-style actions.

Example misbehavior:
With alt mapped to esc: type alt-f, does nothing, alt-f again prints "f".
With alt set to None: type alt-f prints special-script-function-f.

I think I want alt-f to send: "x1bf".
For the alacritty terminal app on MacOS, I have a config line like this:

  • { key: F, mods: Alt, chars: "x1bf"}

Hardware:
iPhone 7
bluetooth Apple keyboard (A1314)

iOS 10.2.1
Blink: v5.028.1. Feb 28 2017

feature icebox

Most helpful comment

I initially thought I had this problem but I didn't realize I needed to map Alt to Esc. Once I did that the behavior of Alt worked as I expected.

All 5 comments

Hi! I'm using Blink with that configuration, and special on emacs it works perfectly. Can you send me a screenshot of your settings? Also, could you do a "showkey -a" and let us know what is actually being sent?

We're preparing a small version and if there is anything with it, we can fix it. :)

I initially thought I had this problem but I didn't realize I needed to map Alt to Esc. Once I did that the behavior of Alt worked as I expected.

I have this issue for Alt + Enter. Other keys seem to work fine with Alt.

showkey -a shows 13 for Alt + Enter by the way.

I tried both with alt-as-esc and alt-as-none. Alt + Enter works fine in the macOS terminal iff the ‘alt as option key’ preference is turned on.

Hi @jdevuyst,

Thank you for good catch. Will be fixed in next release.

I’m having the problem that when I am ash’d into another machine and I send the alt + back / forward arrow, usually it jumps a word at a time but it doesn’t seem to work outside of emacs. Am I missing something?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jwr picture jwr  Â·  3Comments

muammar picture muammar  Â·  3Comments

treyharris picture treyharris  Â·  3Comments

basepi picture basepi  Â·  5Comments

peppy picture peppy  Â·  4Comments