Select chat text input using mouse.

This commit is contained in:
armored-dragon 2025-07-06 21:42:54 -05:00
parent 56b473fcdf
commit 6363f0beec
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -188,11 +188,12 @@ Rectangle {
height: parent.height
TextField {
width: parent.width - 60
height: parent.height
placeholderText: pageVal.charAt(0).toUpperCase() + pageVal.slice(1) + " chat message..."
clip: false
font.italic: text == ""
width: parent.width - 60;
height: parent.height;
placeholderText: pageVal.charAt(0).toUpperCase() + pageVal.slice(1) + " chat message...";
clip: false;
font.italic: text == "";
selectByMouse: true;
Keys.onPressed: {
if ((event.key === Qt.Key_Return || event.key === Qt.Key_Enter) && !(event.modifiers & Qt.ShiftModifier)) {