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:
+2
-1
@@ -15,7 +15,8 @@ Singleton {
|
||||
return Math.floor(date / 1000)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
/**
|
||||
* Formats a Date object into a YYYYMMDD-HHMMSS string.
|
||||
* @param {Date} [date=new Date()] - The date to format. Defaults to the current date and time.
|
||||
* @returns {string} The formatted date string.
|
||||
|
||||
@@ -323,7 +323,6 @@ ColumnLayout {
|
||||
// label: "Tokens"
|
||||
// description: focusedLineIndex > 0 ? "Click any token to add it to line " + focusedLineIndex : "Select an input field above, then click a token to insert it."
|
||||
// }
|
||||
|
||||
NDateTimeTokens {
|
||||
Layout.fillWidth: true
|
||||
height: 200 * scaling
|
||||
|
||||
@@ -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