atom / settings-view

🔧 Edit Atom settings
MIT License
272 stars 276 forks source link

can't focus on the search box with keyboard in keybindings view #1083

Open ghost opened 6 years ago

ghost commented 6 years ago

@tr15tan commented on Oct 6, 2018, 9:57 AM UTC:

Prerequisites

Description

[can't focus on the search box with keyboard]

Steps to Reproduce

  1. open an arbitrary file
  2. use the command palette to open the settingsview : show keybindings panel
  3. try to focus on the "search keybindings" box with keyboard

Expected behavior: [can focus on the "search keybindings" box with keyboard]

Actual behavior: [can not focus on the "search keybindings" box with keyboard]

Reproduces how often: [must]

Versions

Atom : 1.31.0 Electron: 2.0.7 Chrome : 61.0.3163.100 Node : 8.9.3

Linux tristan-home 4.15.0-36-generic #39~16.04.1-Ubuntu SMP Tue Sep 25 08:59:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

This issue was moved by rsese from atom/atom#18203.

ghost commented 6 years ago

@rsese commented on Oct 9, 2018, 6:41 AM UTC:

Thanks for the report! I can reproduce on macOS 10.12.6 with 1.33.0-nightly10.

I also noticed that the Open Config Folder does get highlighted as I tab.

CarolineS-QA commented 4 years ago

A recent issue 21092 in atom/atom seems to be related to this.

Prerequisites

Description

When using the keyboard command to install a package the new pane does not autofocus to the input. Requires using the mouse to select the search field. Keyboard bindings should keep us at the keyboard for faster productivity.

Steps to Reproduce

  1. Ctrl+SHIFT+P
  2. Type 'install' or 'settings view'
  3. Choose the action 'Settings View: Install Packages and Themes' or 'Settings View: Show keybinds' via ENTER on the keyboard

Expected behaviour:

The opened pane window should be focused on the search 'text input' - especially when pressing Enter as the intension of the keyboard shortcut is to reduce the need for a mouseclick.

Actual behaviour:

Open pane window does not autofocus to the input consistently, more often than not it requires a mouseclick to focus on the search before you can keep typing.

Reproduces how often: Inconsistent - it happens often but on repeating it can autofocus the input? If the Settings View is open when you perform the steps in another file it is more likely to occur although I'd need to experiment more. Been looking for a good first issue

Versions

OS: Windows 10 Home 19041.508 Atom : 1.50.0 Electron: 5.0.13 Chrome : 73.0.3683.121 Node : 12.0.0

gosukiwi commented 4 years ago

Looks like focus is already being called, so not sure why it doesn't work. I tried adding a setTimeout and it works, so I suspect a race condition.