Merge pull request #1456 from Nheko-Reborn/inputfocus
Type keypresses that focus the input bar
This commit is contained in:
commit
4a060b59b2
@ -30,7 +30,12 @@ Item {
|
||||
onRoomChanged: if (room != null) room.triggerSpecialEffects()
|
||||
|
||||
// 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 {
|
||||
sequence: StandardKey.Close
|
||||
|
Loading…
Reference in New Issue
Block a user