Bug 1215294

Summary: Emacs binding is on by default, Ctrl+k shortcut doesn't work
Product: [Fedora] Fedora Reporter: Bastiaan Jacques <bastiaan>
Component: gtk3Assignee: Matthias Clasen <mclasen>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: ccecchi, cjs, gecko-bugs-nobody, mclasen, stransky, vitek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-13 00:44:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bastiaan Jacques 2015-04-25 01:08:39 UTC
Description of problem:

The Ctrl-k shortcut normally brings the quick-search bar into focus (by selecting its text). This generally works, but not when the address bar is currently in focus.

Version-Release number of selected component (if applicable):

firefox-37.0.2-2.fc22.x86_64

How reproducible:

Every time.

Steps to Reproduce:
1. Click on the address bar.
2. Press Ctrl-k. Observe the that the address bar stays selected.
3. Click anywhere else in Firefox (say, somewhere on a web page) and press Ctrl-k. Observe that the focus is moved to the quick search bar.

Additional info:

Fedora 21 is not affected. I also downloaded an official (non-RPM) build of Firefox 37.0.2 and tested that it is not affected either. So I believe this is a not an upstream bug.

Comment 2 Carl-Johan Schenström 2015-04-27 10:58:49 UTC
Related bug/change in Gnome?

<https://bugzilla.gnome.org/show_bug.cgi?id=737346>

Comment 3 Victor A. Safronov 2015-05-29 10:52:54 UTC
Confirm. 
Something changed in F22 global hotkeys, and now Ctrl+K is used as an emacs binding - it deletes chars after the cursor till the end of line.
This binding now works in all apps, it is not related to Firefox itself, but FF has own useful binding for that hotkey, which now is inaccessible due to conflict with global settings.
Also, when googling for emacs-like bindings, there are a lot of old articles, that help to enable them, but not to disable.

See also: https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly

Comment 4 Matthias Clasen 2015-06-13 00:44:18 UTC
The Emacs keybindings are _not_ on by default. Ctrl-k was added to GtkEntry shortcuts in response to an upstream feature request. According to https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts it is not emacs-specific at all, but traditional unix commandline editing.

In any case, I've just put instructions for how to turn it off into another bug.

*** This bug has been marked as a duplicate of bug 1224605 ***