Skip to content

Commit

Permalink
fix: handle Escape key to exit Export mode
Browse files Browse the repository at this point in the history
This avoids unexpectedly exiting the whole KCM when just trying
to cancel the Export mode (based on a true story)
  • Loading branch information
ismailof authored and romangg committed Jun 19, 2024
1 parent 50d98fe commit d45c178
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kcms/rules/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ KCM.ScrollViewKCM {
]
}

Keys.onEscapePressed: event => {
if (exportInfo.visible) {
exportInfo.visible = false;
return;
}
event.accepted = false;
}

component RuleBookDelegate : Item {
// External item required to make Kirigami.ListItemDragHandle work
width: ruleBookView.width
Expand Down

0 comments on commit d45c178

Please sign in to comment.