mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 01:30:46 +03:00
Always allow sending messages by enter even with IMEs
Qt.inputMethod.visible is true in kwin_wayland when maliit is enabled and activated, however kwin does not actually show maliit w/o touch input [1]. Moreover, having send by enter might still be desired even for virtual keyboards. Remove the check for virtual keyboards as suggested by @deepbluev7, people could still use Settings.invertEnterKey for newlines. [1]: https://invent.kde.org/plasma/kwin/-/blob/v6.1.4/src/inputmethod.cpp?ref_type=tags#L185
This commit is contained in:
parent
c8c3d1c611
commit
87cb63e1fd
1 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ Rectangle {
|
|||
} else if (event.matches(StandardKey.InsertLineSeparator)) {
|
||||
if (popup.opened)
|
||||
popup.close();
|
||||
if (Settings.invertEnterKey && (!Qt.inputMethod.visible || Qt.platform.os === "windows")) {
|
||||
if (Settings.invertEnterKey) {
|
||||
room.input.send();
|
||||
event.accepted = true;
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ Rectangle {
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (!Settings.invertEnterKey && (!Qt.inputMethod.visible || Qt.platform.os === "windows")) {
|
||||
if (!Settings.invertEnterKey) {
|
||||
room.input.send();
|
||||
event.accepted = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue