Skip to content

Commit

Permalink
feat: Add search emoticon shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxin630 committed May 13, 2018
1 parent e969f25 commit e7a3859
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/modules/main/chatPanel/chat/ChatInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ class ChatInput extends Component {
this.sendHuaji();
e.preventDefault();
}
} else if (e.key === 'd' || e.key === '∂') {
if (e.altKey) {
this.setState({
expressionSearchVisible: true,
});
}
} else if (expressionShortcut[e.key]) {
if (e.altKey) {
if (!this.props.connect) {
Expand Down
1 change: 1 addition & 0 deletions client/modules/main/sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ class Sidebar extends Component {
<p>输入框快捷键</p>
<ul>
<li>Alt + S: 发送滑稽</li>
<li>Alt + D: 发送表情包</li>
<li>Alt + 1: 表情阴险</li>
<li>Alt + 2: 表情乖</li>
<li>Alt + 3: 表情滑稽</li>
Expand Down

0 comments on commit e7a3859

Please sign in to comment.