PLT-3473 Made shortcuts only work for CMD on OSX (#3479)
* checked for CMD key * changed method of checking
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
6c33350f5c
Коммит
96ca098f4b
@@ -155,7 +155,7 @@ export default class ChannelHeader extends React.Component {
|
||||
}
|
||||
|
||||
openRecentMentions(e) {
|
||||
if ((e.ctrlKey || e.metaKey) && e.shiftKey && e.keyCode === Constants.KeyCodes.M) {
|
||||
if (Utils.cmdOrCtrlPressed(e) && e.shiftKey && e.keyCode === Constants.KeyCodes.M) {
|
||||
e.preventDefault();
|
||||
this.searchMentions(e);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user