Merge pull request #1093 from syldrathecat/msginput-cursor-rect

Make cursoring up/down more consistent on some setups
pull/1095/head
DeepBlueV7.X 2 years ago committed by GitHub
commit 2a6bf8e839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      resources/qml/MessageInput.qml

@ -278,7 +278,7 @@ Rectangle {
}
idx++;
}
} else if (positionAt(0, cursorRectangle.y) === 0) {
} else if (positionAt(0, cursorRectangle.y + cursorRectangle.height / 2) === 0) {
event.accepted = true;
positionCursorAtStart();
}
@ -295,7 +295,7 @@ Rectangle {
}
idx--;
}
} else if (positionAt(width, cursorRectangle.y + 2) === messageInput.length) {
} else if (positionAt(width, cursorRectangle.y + cursorRectangle.height / 2) === messageInput.length) {
event.accepted = true;
positionCursorAtEnd();
}

Loading…
Cancel
Save