Keyboard navigation inside the Notepad text editor
Closed, ResolvedPublic

Assigned To
Authored By
CarlSchwan
Oct 30 2024, 11:21 AM

Description

Tab is a conflicting keyboard shortcut in a text editor. It can either indent text or navigate to the next element.

From that I read online there is a few alternative solutions with no real consensus:

  • Don't let user enter tab with setTabChangesFocus(true) and instead rely of them to just using spaces which is a bit more inconvenient, but at least the navigation inside the app is consistent. This is out of question for code editor but for a plain text editor, it is probably not an issue.

Event Timeline

• ebo edited projects, added gpd5x; removed Restricted Project.Nov 4 2024, 8:35 AM
• ikloecker added a subscriber: • ikloecker.

High priority since it affects accessibility and was mentioned as problem in the accessibility reports.

• ikloecker moved this task from Backlog to WIP on the gpd5x board.
• ikloecker changed the task status from Open to Testing.Jul 3 2025, 9:42 AM

For simplicity (and because I think entering tab characters isn't really essential for the notepad) I decided to go with the first solution.

All other QTextEdit we use in kleopatra and libkleo are either read-only or also don't allow entering tab characters (e.g. the input field for the reason of revocation).

Backported for VSD 3.4

• ebo moved this task from QA to Done on the gpd5x board.EditedJul 23 2025, 1:48 PM
• ebo added a subscriber: • ebo.

tested with Gpg4win-5.0.0-beta345

Leaving the notepad text field with TAB works now. (And leaving moving in the other direction, i.e. backwards, with Shift+TAB works, too.)

• ikloecker mentioned this in Unknown Object (Maniphest Task).Jul 28 2025, 9:59 AM
• ikloecker mentioned this in Unknown Object (Maniphest Task).Jul 28 2025, 4:31 PM
timegrid added a subscriber: timegrid.

Also looks good to me on vsd-3.4.0-beta1294 @ win10.

timegrid edited projects, added vsd34 (vsd-3.4.0); removed vsd34.