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

Modifier keys mapping to selectable escape sequences #32

Closed
vshvedov opened this issue Jun 16, 2016 · 10 comments
Closed

Modifier keys mapping to selectable escape sequences #32

vshvedov opened this issue Jun 16, 2016 · 10 comments
Labels
feature Feature requested by users
Milestone

Comments

@vshvedov
Copy link

vshvedov commented Jun 16, 2016

That would be awesome to have an ability to reassign the Caps Lock, and send Escape key ASCII 27 code instead. While Ctrl-[ works fine in Vim, it's still better to use one key instead of a combination.

@mtwebb
Copy link

mtwebb commented Jun 16, 2016

Strongly seconded. While the 'smart' keyboard for the ipad pro lacks an
escape key, it has a full sized caps lock key just sitting there quietly
mocking me.

On Thu, Jun 16, 2016 at 9:43 AM Vlad Shvedov notifications@github.com
wrote:

That would be awesome to have an ability to reassign the Caps Lock, and
send Escape key codes instead. While Ctrl-[ works fine in Vim, it's
still better to use one key instead of combination.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#32, or mute the thread
https://github.com/notifications/unsubscribe/ABUBqLAJCto4dUb7eMLwkEEUieFmwLaqks5qMX0sgaJpZM4I3lIv
.

@carloscabanero carloscabanero added the feature Feature requested by users label Jun 17, 2016
@carloscabanero
Copy link
Member

Great Great Great news, this can be done!! I will add it once the config dialog for keys is completed.

@mtwebb
Copy link

mtwebb commented Jun 17, 2016

Excellent news! Happy to test it once it's ready.

@andrius
Copy link

andrius commented Jun 18, 2016

Great news! ESC and CMD-arrows mapping (Page up/down, Home/End) would help me :)

@carloscabanero
Copy link
Member

Hi @andrius! You should have Ctrl/Shift/Alt + arrows on v0.916. Let me know!

@carloscabanero carloscabanero changed the title Reassign Caps Lock to Escape Modifier keys mapping to selectable escape sequences Aug 16, 2016
@carloscabanero
Copy link
Member

The user needs to remap Modifier keyboard keys like Ctrl, Alt, Command and Caps Lock, to the escape sequences as desired. This is a must to have the terminal configured to your liking. For example, it should allow to map Caps to Esc, Alt as Esc, Caps as Ctrl, etc...

@carloscabanero
Copy link
Member

Caps as ESC
[_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:@"" modifierFlags:UIKeyModifierAlphaShift action:@selector(capsPressed:)]];

@carloscabanero carloscabanero modified the milestone: Backlog Aug 17, 2016
@carloscabanero carloscabanero added the WIP Work In Progress label Aug 17, 2016
@clarkema
Copy link

Commenting on this following Twitter discussion yesterday. Caps to Ctrl is an awesome feature, and worth moving to Blink for all by itself. However, now I know it's possible to do this kind of remapping...

  1. I use an MS Ultimate Folding keyboard with the iPad. That keyboard does have an escape key, but it seems to just act as a home key; it takes me out of Blink back to the main screen, so I'm still having to use Ctrl-[ in vim. Being able to remap this as a true escape would be great.
  2. On my main machine Caps has two functions; tapping it gets you Esc and holding gets Ctrl. This works amazingly well, and is very addictive once you get used to it. Would it be possible to have different actions on tap and hold?

@carloscabanero
Copy link
Member

Version 0.931 includes full support for all modifiers:

  • Caps/Shift as ESC.
  • Cursor Keys (Home, End, PgUp, PgDown), initially mapped to Cmd + arrows.
  • Function Keys (F1-F10) initially mapped to Cmd+number.
    And you can even map them to what you want. For example, @clarkema can now map Caps to Ctrl, and also Caps to ESC, and get ESC on tap and Ctrl on hold.

@carloscabanero carloscabanero removed the WIP Work In Progress label Aug 31, 2016
@searls
Copy link

searls commented Aug 17, 2017

Sorry to resurrect this thread, @carloscabanero, but could you clarify how to accomplish this:

And you can even map them to what you want. For example, @clarkema can now map Caps to Ctrl, and also Caps to ESC, and get ESC on tap and Ctrl on hold.

In the latest version of Blink?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature requested by users
Projects
None yet
Development

No branches or pull requests

6 participants