Skip to content

Commit

Permalink
Fix input limitations in edit while prompting mode
Browse files Browse the repository at this point in the history
Fixes #280
  • Loading branch information
Cuperino committed Sep 21, 2024
1 parent 950a462 commit 86b06f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prompter/Prompter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ Flickable {
case keys.nextMarker:
case keys.toggle:
// If in edit while prompting mode, ensure arrow keys and space bar don't float up to prompter so editor can make proper use of them.
if (event.key === Qt.Key_Up || event.key === Qt.Key_Down || event.key === Qt.Key_Left || event.key === Qt.Key_Right || event.key === Qt.Key_Space) {
if ((Qt.Key_Left <= event.key && event.key <= Qt.Key_Down) || (Qt.Key_Space <= event.key && event.key <= Qt.Key_Dead_Longsolidusoverlay)) {
event.accepted = false;
return;
}
Expand Down

0 comments on commit 86b06f0

Please sign in to comment.