Closed Bug 1606885 Opened 5 years ago Closed 5 years ago

Text Editing Keyboard Shortcuts Don't Work

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

73 Branch
Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: admin, Assigned: m_kato)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

I find Firefox for Android very difficult to use both on my software keyboard that has easy access to the control key (messagease) and when I use a bluetooth or other hardware keyboard because text editing shortcuts that work in every other Android application I have tried simply do not function. (It is also extremely frustrating and inconsistent to do the gesture/touchscreen equivalent of these functions, but that is perhaps another issue.)

I frequently use shortcuts such as Ctrl+A for select all, Ctrl+C for copy, Ctrl+V for paste, and Ctrl+X for cut. Also ctrl+backspace does not even do a backspace, let alone delete the previous word. I do not have a physical keyboard handy to test, but this may also happen with things like ctrl/alt plus cursors and the home/end keys for moving the cursor around a body of text.

Actual results:

Keyboard shortcuts do nothing and tend to swallow the input, i.e. ctrl+backspace will not even backspace.

Expected results:

The various standard text editing functions should happen, such as copy, paste, cut, select all, delete last word, move cursor to beginning of paragraph, etc.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

Keyboard shortcuts do nothing and tend to swallow the input, i.e. ctrl+backspace will not even backspace.

Does Chrome for Android work it well?

Although editbox (and contenteditable) 's keyboard shortcut is defined in https://searchfox.org/mozilla-central/source/dom/events/android/ShortcutKeyDefinitions.cpp, we can add it if it is assigned in Chrome (and/or Android's standard editbox).

Bug 1417352 is browser level shortcut (ctrl+l should be handled by browser, not Gecko).

Status: RESOLVED → REOPENED
Component: Keyboards and IME → DOM: UI Events & Focus Handling
Ever confirmed: true
Flags: needinfo?(admin)
Product: Firefox for Android → Core
Resolution: DUPLICATE → ---
Version: Firefox 73 → 73 Branch
OS: Unspecified → Android

Yes it works fine in Chrome and any other Android application I've ever used with textareas or editable text boxes.

Flags: needinfo?(admin)

https://android.googlesource.com/platform/frameworks/base/+/f2b233d44c796ceab3048a0130682fb5da3db557

commit f2b233d44c796ceab3048a0130682fb5da3db557
Author: Seigo Nonaka <nona@google.com>
Date:   Tue Apr 7 21:02:13 2015 +0900

    Introduce Ctrl+Backspace/Ctrl+ForwardDelete shortcut.

    Ctrl+Backspace deletes preceding one word and Ctrl+ForwardDelete delets
    following one word.
    Used Chrome's implementation/behvior as a reference.

    Bug: 17810742
    Change-Id: I7b2ca515b2f017e457f7104ec7b8e7473ca4e081

P3 for now.
hi Chenxia, please feel free to let us know if we should have a higher priority for this issue for android, from your team's point of view.

Flags: needinfo?(liuche)
Priority: -- → P3

Thanks for the heads up! We will be replacing Fennec (the current Firefox for Android in the Google Play Store) and are currently focusing all our efforts on Firefox Preview. If you find this is also a problem on Firefox Preview, please file a bug in our repo: https://github.com/mozilla-mobile/fenix

Thank you!

Flags: needinfo?(liuche)
Assignee: nobody → m_kato
Status: REOPENED → NEW

According to [*1], Android's text control now supports ctrl+backspace and
ctrl+delete shortcut. So we should support it since Chrome already have this.

*1 https://android.googlesource.com/platform/frameworks/base/+/f2b233d44c796ceab3048a0130682fb5da3db557

Note that Firefox Preview does not work with text editing shortcuts, either

Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/a409305a3d8a Add control+backspace/delete shortcut. r=geckoview-reviewers,snorp
Status: NEW → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: