Page MenuHome GnuPG

Keyboard navigation inside the Notepad text editor
Testing, HighPublic

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.Thu, Jul 3, 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).