New issue
Advanced search Search tips

Issue 737294 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

hterm: add option to bind default set of keyboard shortcuts on a per-OS basis

Project Member Reported by vapier@chromium.org, Jun 27 2017

Issue description

in macOS, people are used to command+left/right arrow keys being home/end.  in hterm, we end up eating these by default and passing them thru (where command==meta).

we should add a new preference like "keybindings-os-default" where we initialize a default set of keybindings (before adding in the user's "keybindings") that are common/normal for that platform.

in macOS, we'd probably start with:
{
  "Meta-Left": "'\u001b[H'",
  "Meta-Right": "'\u001b[F'"
}
 

Comment 1 by vapier@chromium.org, Jun 28 2017

macOS has a lot of common bindings using ⌘ (command), so we probably should just add a binding there like "Meta-*": "PASS".
since meta-q in macOS is "quit program", and "program" here is Chrome, we probably want to rewrite that to the equiv of meta-w ("close window") for now

Comment 3 by vapier@chromium.org, Apr 28 2018

for CrOS, we probably want to whitelist Alt-Shift-i which triggers feedback reports.  for people in crosh, eating this shortcut can confuse them.
Cc: mkarkada@chromium.org dhadd...@chromium.org sdantul...@chromium.org
 Issue 897351  has been merged into this issue.
 Issue 904122  has been merged into this issue.

Sign in to add a comment