New issue
Advanced search Search tips

Issue 804129 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Emacs keybinding should take precidence over Javascript events

Reported by weiwu.zh...@realss.com, Jan 21 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/63.0.3239.84 Chrome/63.0.3239.84 Safari/537.36

Steps to reproduce the problem:
1. Enable Emacs Keybinding with 'gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"'
2. access Gmail. Write a new email.
3. Press "Ctrl+K".

What is the expected behavior?
I hope that if a keyboard shortcut is mapped to gnome key, it takes precedence over javascript events.

What went wrong?
At Ctrl+K, instead of killing the text after the cursor, gmail pops up a window asking for link.

Did this work before? N/A 

Chrome version: 63.0.3239.84  Channel: n/a
OS Version: Ubuntu 17.10
Flash Version: 

I can see the reasoning against making emacs keys take precedence over JS event. Alternatively, this can be done with a Chromium plugin or a switch.
 

Comment 1 by ajha@chromium.org, Jan 23 2018

Labels: Needs-Triage-M63
Cc: thomasanderson@chromium.org
Components: -UI Blink>Input
Status: Available (was: Unconfirmed)
I use emacs keybindings as well, and I'm able to reproduce the issue.

Anyone from blink have any insight into how this could be fixed?
Components: -Blink>Input Blink>Editing
Labels: -Type-Bug Type-Feature
Status: Untriaged (was: Available)
This would be a feature request to add emacs key bindings to 

https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/editing/EditingBehavior.cpp

Over to the editing team.
Labels: -Type-Feature Type-Bug
I don't think this is a feature request.  Emacs keybindings are already supported, they're just broken in this case.

Comment 5 by yosin@chromium.org, Feb 2 2018

Status: WontFix (was: Untriaged)
Mark WontFix, this should be done in extension instead of Chrome.

Even if Chrome support Emacs binding, e.g. Chrome on MacOS is very similar to
Emacs binding, Ctrl+A=>start of line, Ctrl+K=>Kill-to-ring, Gmail captures Ctrl+K
and Gmails does its own task.

Chrome's keybinding does a task if web site doesn't handle keydown event. If you want to
make Ctrl+K works what you want other than Gmail's, you need to have an extension to override it.

Sign in to add a comment