Skip to content

Commit

Permalink
Prevent right click context menu from showing while prompting
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuperino committed Nov 3, 2023
1 parent cfc20e8 commit c227bcb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/prompter/Prompter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -967,10 +967,12 @@ Flickable {
cursorShape: limitedMouse.cursorShape
scrollGestureEnabled: false
onClicked: {
if (root.__isMobile)
contextMenu.popup(this)
else
nativeContextMenu.open()
if (!(parseInt(prompter.state) === Prompter.States.Prompting && !editor.focus)) {
if (root.__isMobile)
contextMenu.popup(this)
else
nativeContextMenu.open()
}
}
}
MouseArea {
Expand Down

0 comments on commit c227bcb

Please sign in to comment.