mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
NTextInput: dont propagate events to avoid dragging panel when selecting text with the mouse.
This commit is contained in:
@@ -54,6 +54,14 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
// Block mouse events from going through
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
z: -1 // Place behind the TextField
|
||||
acceptedButtons: Qt.AllButtons
|
||||
propagateComposedEvents: false
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: input
|
||||
|
||||
|
||||
Reference in New Issue
Block a user