Ctrl+a not working for an input field in the Theia IDE
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
People
(Reporter: alexcmonnet, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Steps to reproduce:
- Open a project in a Gitpod workspace.
- Create a new file in the Theia IDE
- Select/focus on the input field in the pop-up titled 'New File'
- Use the select all keyboard shortcut 'ctrl + a'
- Note that the text in the input field is not selected.
Additional Info:
Bug was logged with Gitpod at: https://github.com/gitpod-io/gitpod/issues/1890
Actual results:
When the 'ctrl+a' shortcut is executed the selected/highlighted area does not change.
Expected results:
When the 'ctrl+a' shortcut is executed, the entire input of the field should be selected and highlighted.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•4 years ago
|
||
I think it is similar to https://bugzilla.mozilla.org/show_bug.cgi?id=1640883 just for selectall
document command.
Comment 3•4 years ago
•
|
||
Gecko does not support execCommand('selectall')
in <input> elements. execCommand()
is generally discouraged to use, and currently a better cross-platform way is to call .select()
on each input element.
Masayuki, do you think it's worth adding support for this case? Both WebKit/Blink support it, so maybe yes for web compat?
Comment 4•4 years ago
|
||
Yeah, I plan to work on it after shipping beforeinput
(bug 1220696). It requires some traditional behavior change unfortunately, though (when <input>
or <textarea>
in contenteditable
has focus).
Description
•