mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 20:18:53 +03:00
Type keypresses that focus the input bar
This commit is contained in:
parent
d694a8f5cb
commit
8887a07ec2
1 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,12 @@ Item {
|
||||||
onRoomChanged: if (room != null) room.triggerSpecialEffects()
|
onRoomChanged: if (room != null) room.triggerSpecialEffects()
|
||||||
|
|
||||||
// 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: if (event.text && !topBar.searchHasFocus) TimelineManager.focusMessageInput();
|
Keys.onPressed: {
|
||||||
|
if (event.text && !topBar.searchHasFocus) {
|
||||||
|
TimelineManager.focusMessageInput();
|
||||||
|
room.input.setText(room.input.text + event.text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
sequence: StandardKey.Close
|
sequence: StandardKey.Close
|
||||||
|
|
Loading…
Reference in a new issue