mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Workaround a WM bug that switches the focus incorrectly after initiating a search
This commit is contained in:
parent
ccf6a3a669
commit
5c64dd682c
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ Item {
|
||||||
|
|
||||||
// focus message input on key press, but not on Ctrl-C and such.
|
// focus message input on key press, but not on Ctrl-C and such.
|
||||||
Keys.onPressed: {
|
Keys.onPressed: {
|
||||||
if (event.text && !topBar.searchHasFocus) {
|
if (event.text && event.key !== Qt.Key_Enter && event.key !== Qt.Key_Return && !topBar.searchHasFocus) {
|
||||||
TimelineManager.focusMessageInput();
|
TimelineManager.focusMessageInput();
|
||||||
room.input.setText(room.input.text + event.text);
|
room.input.setText(room.input.text + event.text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue