mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-03 02:51:46 +00: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)
|
return Math.floor(date / 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
|
/**
|
||||||
* Formats a Date object into a YYYYMMDD-HHMMSS string.
|
* 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.
|
* @param {Date} [date=new Date()] - The date to format. Defaults to the current date and time.
|
||||||
* @returns {string} The formatted date string.
|
* @returns {string} The formatted date string.
|
||||||
|
|||||||
@@ -323,7 +323,6 @@ ColumnLayout {
|
|||||||
// label: "Tokens"
|
// 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."
|
// 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 {
|
NDateTimeTokens {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: 200 * scaling
|
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 {
|
TextField {
|
||||||
id: input
|
id: input
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user