Kleopatra: All buttons shall be activatable with the Enter/Return key
Open, NormalPublic

Assigned To
Authored By
• ikloecker
Jul 27 2022, 3:41 PM
Subscribers

Description

It should be possible to activate/press/click tool buttons (QToolButton) and command buttons (QPushButton) with the Enter and Return keys. QToolButtons can only be activated with Space and for QPushButtons it depends on the default and auto-default property.

For tool buttons a solution exist: rKLEOPATRAccb6f078db56: Add and use a custom tool button
For command buttons a possible (hackish) solution is to set the auto-default property when a button receives the keyboard focus. Subclassing QPushButton isn't a viable solution because Qt and KF5 create loads of QPushButtons out of our control.

Event Timeline

• ebo edited projects, added gpd5x; removed Restricted Project.Feb 19 2026, 4:20 PM
• ikloecker moved this task from Backlog to WIP on the gpd5x board.
• ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Oct 5, 9:18 AM
• ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Oct 5, 9:58 AM