Added keystroke triggered marking of chats as read in chatbox

This commit is contained in:
Curtis ROck 2020-09-09 21:37:35 -05:00
parent fa606b8040
commit 16eab5c5f1
1 changed files with 1 additions and 0 deletions

View File

@ -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();