Closed Bug 1644502 Opened 4 years ago Closed 3 years ago

[Wayland] QWERTY keybindings are active in text boxes when using Dvorak layout

Categories

(Core :: Widget: Gtk, defect, P3)

79 Branch
Desktop
Linux
defect

Tracking

()

RESOLVED MOVED

People

(Reporter: bhavin7392, Unassigned)

References

(Blocks 1 open bug)

Details

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

Steps to reproduce:

• Start Firefox with,
┌────
│ MOZ_ENABLE_WAYLAND=1 ./firefox-79.0a1.en-US.linux-x86_64/firefox/firefox
└────
• Switch to English Dvorak (keybindings in bracket are actual meaning of QWERTY keybindings on a Dvorak layout).
• Copy any text from a webpage by pressing Ctrl + i (i on QWERTY keyboard is v on Dvorak).
• Jump to address bar by Ctrl + p (Ctrl + l).
• Try to paste the text with Ctrl + . (Ctrl + v) [Doesn't work]
• Now press Ctrl + v (Ctrl + k) [Pastes text instead of opening
search]
• Press Ctrl + k (Ctrl + t) [This works, creates a new tab]
• Press Ctrl + , (Ctrl + w) [Works, closes the tab]
• Press Ctrl + a (Ctrl + a) [Works, as both key is same in both
layouts]
• Press Ctrl + x (Ctrl + q) [Cuts the text instead of quit]
• Type something in the address bar again, select it with Ctrl + a.
• Press Ctrl + b (Ctrl + x) [Cuts the text as well]
• Same with copy Ctrl + c (Ctrl + j) and Ctrl + i (Ctrl + c) both copy
the text.
• Other text boxes than the address bar (Bugzilla search box)
• Type some text in a text box.
• Press Ctrl + a [Works, selects the text]
• Press Ctrl + i (Ctrl + c) [Works, copies the text]
• Press Ctrl + b (Ctrl + x) [Works, cuts the text]
• Press Ctrl + v (Ctrl + k) [Pastes text instead of opening search]
• Press Ctrl + . (Ctrl + v) [Works, pastes the text]
• Ctrl + , (Ctrl + w) and Ctrl + k (Ctrl + t) [Works, close tab, new
tab]

Other details,
• Build ID: 20200609092134
• Version: 79.0a1
• Fedora 32
• GNOME 3.36.3

Actual results:

The behaviour of keybindings give mixed results. It makes it impossible to use keybindings like Ctrl + k when using Dvorak. This issue doesn't happen when I start Firefox with,
┌────
│ MOZ_DISABLE_WAYLAND=1 firefox
└────

Expected results:

The keybindinds like jump to serach, paste, copy should work as typing works on a different layout.

OS: Unspecified → Linux
Hardware: Unspecified → Desktop

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Blocks: wayland
Priority: -- → P3

Hm this is weird. I also use Dvorak and many of the mentioned key combinations a lot (and also switch layouts from time to time if friends want to use the keyboard). Never ran into issues like that :/ Also just tried again to reproduce these steps - and couldn't. Also running Fedora /Gnome Shell.

(In reply to Robert Mader [:rmader] from comment #2)

Also just tried again to reproduce these steps - and couldn't. Also running Fedora /Gnome Shell.

Are you running on Wayland or Xorg?

So I tried same combination on my friend's machine, we found same issue. Another interesting thing we found is, it happens in all the applications which are running on Wayland (Not using XWayland). I think this is, https://gitlab.gnome.org/GNOME/gtk/-/issues/1825, but not sure about any progress on it.

[Tracking Requested - why for this release]:

(In reply to bhavin192 from comment #3)

(In reply to Robert Mader [:rmader] from comment #2)

Also just tried again to reproduce these steps - and couldn't. Also running Fedora /Gnome Shell.

Are you running on Wayland or Xorg?

So I tried same combination on my friend's machine, we found same issue. Another interesting thing we found is, it happens in all the applications which are running on Wayland (Not using XWayland). I think this is, https://gitlab.gnome.org/GNOME/gtk/-/issues/1825, but not sure about any progress on it.

Running on Wayland, using "Use the same source for all windows" in the settings (is that the default? Not sure.). But a GTK bug sounds likely then.

Ah forgot to mention: you could verify by running a QT application like dolphin or keepassxc or so. On Fedora 32 they run on the Wayland backend by default (you can verify that by running xeyes.

Here is the thing, the issue happens only if Dvorak is not your first layout i.e. in GNOME it shows as en3 or something similar to that. https://gitlab.gnome.org/GNOME/gtk/-/issues/1015#note_112271

This can be changed by going to 'Region & Language' in 'Settings' and moving Dvorak to top.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → MOVED
You need to log in before you can comment on or make changes to this bug.