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