Skip to content

KMessageWidget: Improve accessibility

  • Set the message to be selectable by keyboard so keyboard users are able to e.g. copy-paste and search or ask for help about error messages online. It also means users are able to see when keyboard focus is on the label.
  • Set the focus proxy of KMessageWidget to be its textLabel, so setting focus to it in application code correctly announces the message.
  • Set an accessible name on KMessageWidget depending on the message type so users know about the severity of a message. We currently only communicate the message type by the frame color most of the time, so this is important for giving users all the information to correctly judge the importance.

This change can be tested e.g. with system/dolphin!836 (merged). It seems mostly harmless to me though. Setting the focusProxy does not seem to mess with the normal Tab and Shift+Tab keyboard shortcuts to move through the application.

Edited by Felix Ernst

Merge request reports

Loading