Added keystroke triggered marking of chats as read in chatbox
This commit is contained in:
parent
fa606b8040
commit
16eab5c5f1
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ class ChatBox extends ImmutablePureComponent {
|
|||
}
|
||||
|
||||
handleKeyDown = (e) => {
|
||||
this.markRead();
|
||||
if (e.key === 'Enter' && e.shiftKey) {
|
||||
this.insertLine();
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue