Looking into keyboard navigation

This commit is contained in:
Vincent 2020-01-30 11:44:25 +11:00
parent c6ee021708
commit ae01b11478
3 changed files with 9 additions and 0 deletions

View file

@ -1738,8 +1738,10 @@
if (event.key !== 'Escape') {
return;
}
// TODO: this view is not always in focus (e.g. after I've selected a message),
// so need to make Esc more robust
// Perhaps look into ConversationHeader.tsx and add an event listener in there.
this.model.resetMessageSelection();
this.closeEmojiPanel();
},

View file

@ -1469,6 +1469,7 @@
}
.module-conversation-header__avatar {
cursor: pointer;
min-width: 28px;
user-select: none;
}

View file

@ -476,6 +476,12 @@ $session-element-border-green: 4px solid $session-color-green;
width: 100%;
display: flex;
&-text {
@include session-color-subtle($session-color-white);
font-family: "SF Pro Text";
font-weight: 300;
}
.module-contact-name {
width: 100%;
}