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

View file

@ -52,6 +52,7 @@ class ChatBox extends ImmutablePureComponent {
}
handleKeyDown = (e) => {
this.markRead();
if (e.key === 'Enter' && e.shiftKey) {
this.insertLine();
e.preventDefault();