Theia: Find & Replace is not fully functional for keyboard users.

Created on 19 Jun 2020  路  7Comments  路  Source: eclipse-theia/theia

Bug Description:

In both Theia and VS Code pressing enter in the focused input(where the new value is entered in find and replace) does not replace the contents I have to manually click on the small icon next to the input. I was expecting it to work when the enter key is pressed.

Peek 2020-06-19 17-22

To me, it looks like a serious accessibility issue for Keyboard users and generally, it would be great if the whole Theia IDE is accessible for those users who only use a keyboard and can't use a mouse.

Steps to Reproduce:

  1. Open a Gitpod workspace.
  2. Try to find and replace some text via the Keyboard.


Additional Information

  • Operating System:
  • Theia Version:
accessibility help wanted search in workspace

Most helpful comment

I think in general a good usability improvement would be to make the different options (icons) be focusable with tab. It will not only fix the issue, but will also improve the functionality of the other icons as well (and is likely to be the simplest fix).

All 7 comments

@akosyakov I would love to make a PR for this but don't know what files to change and so on. Would be nice if you can outline steps or mention what files to change and so on? Thanks

@nisarhassan12 in vscode the search-in-workspace options are accessible when pressing tab, is this the type of implementation you want to go for? At the moment, when pressing tab we toggle between the available inputs and the search results but never the options.

![test](https://user-images.githubusercontent.com/40359487/85135727-8f322000-b20c-11ea-809c-37c224b2fc54.gif)

Thanks! @vince-fugnitto the VS Code implementation looks ok.

This issue is specifically about not being able to replace the contents when pressing the enter key.

Generally, it would be great if all parts of Theia are fully accessible and usable via a Keyboard without having to use a mouse (i.e Jumping to the different parts of the IDE using skip links and so on and having all the interactive things tab-able with keyboard).

This issue is specifically about not being able to replace the contents when pressing the enter key.

The issue I see with enter is that it is reserved to search, and an action like replace all is actually uncommon as it will potentially modify multiple files (that is why we add the safeguard dialog to confirm the choices). The enter to replace all only works in vscode if the option is currently focused.

Generally, it would be great if all parts of Theia are fully accessible and usable via a Keyboard without having to use a mouse (i.e Jumping to the different parts of the IDE using skip links and so on and having all the interactive things tab-able with keyboard).

I agree, the accessibility should always be improved and work well :)

that is why we add the safeguard dialog to confirm the choices

So maybe when the new Value field is focused and the enter key is pressed take the keyboard focus to the confirmation prompt ?

The enter to replace all only works in vscode if the option is currently focused.

or maybe make the icon focusable with Tab.

I think in general a good usability improvement would be to make the different options (icons) be focusable with tab. It will not only fix the issue, but will also improve the functionality of the other icons as well (and is likely to be the simplest fix).

I will make a PR for this.

Was this page helpful?
0 / 5 - 0 ratings