Type keypresses that focus the input bar

pull/1456/head
Loren Burkholder 2 years ago
parent d694a8f5cb
commit 8887a07ec2
  1. 7
      resources/qml/TimelineView.qml

@ -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…
Cancel
Save