The "Alt Gr" key on German keyboards selects all text in an input field when tab key was used to move there
Categories
(Core :: DOM: Editor, defect)
Tracking
()
People
(Reporter: w-sky, Unassigned, NeedInfo)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
Steps to reproduce:
Info: The "Alt Gr" key is an extra key on German keyboards that allows to enter some special characters. For example, it is necessary for ², ³, ~, |, {, }, [, ], € and @.
- Open any web page that has single line text input fields.
- Use the mouse to place the cursor into one of the input fields.
- Use the Tab key to move to another input field.
- Enter some characters into this field and then press "Alt Gr".
It works on the "Summary" line of the Bugzilla form too! You may skip step 2, important is to move to the single line input field using the tab key.
Actual results:
All text in this field will be selected.
Problem: So it is almost impossible to enter any of the characters mentioned above, because e.g. holding "Alt Gr" and pressing Q (to get "@") will select all text and then replace it with @.
Expected results:
Pressing "Alt Gr" alone should never have any effect.
PS: Only to clarify: Of course using the Tab key to move to an single line input field that already has text in it will also select the text. This is ok. This is not the problem.
Comment 2•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Forms' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
I test this on Ubuntu 22.04.3 LTS with installing "German (US)" keyboard layout (active IM is IBus). However, pressing AltGr
does nothing. I did:
- Open https://bugzilla.mozilla.org/query.cgi?format=advanced
- Open "Detailed Bug Information" if it's collapsed
- Type "abc" in the
<input>
for "Comment" - Press
Tab
4 times to move focus to<input>
for "URL - Type "def" in it and press
AltGr
(RightAlt
)
However, the caret keeps blinking next to "f".
There are some questions:
- What the environment do you use? The version of Ubuntu, keyboard layout name, IBus vs. XIM vs. None vs. something other.
- Is this a regression? If so, could you use mozregression to get the regressor change?
- Did you customize your system-wide key bindings? Firefox respects
select_all
signal if the key combination is pressed inGtkTextView
(i.e., using same shortcut key with multiline text field of GTK applications).
Updated•8 months ago
|
Description
•