Skip to content

Commit

Permalink
Toggle replace section of find dialog when Ctrl+R is pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuperino committed Nov 17, 2024
1 parent 6b50ec6 commit 41c2926
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/prompter/Find.qml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ Item {
"Replaced %1 instances", i));
}
anchors.fill: parent
Keys.onPressed: (event) => {
if (event.key === Qt.Key_R && event.modifiers | Qt.CtrlModifier)
find.replace = !find.replace;
}
RowLayout {
spacing: 6
Button {
Expand Down

0 comments on commit 41c2926

Please sign in to comment.