When cropping an image, an inline tool dialog bar is added to the view, allowing to accept or reject the current crop region. Users expect the Enter key to accept that dialog, see bug 313806. I also added the Escape key to reject this dialog.
Details
Details
Diff Detail
Diff Detail
- Repository
- R260 Gwenview
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Just noticed that AbstractRasterImageViewTool already has a keyPressEvent() overload. Would you prefer using this?
Comment Actions
Use the keyPressEvent() of the Tool to handle the Return/Escape keys. This allows each tool to individually decide what to do.