Add cmd + k hotkey for mac os
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
d25c3ff4fc
commit
127dd8baf4
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@ import { openSearch, toggleRoomSettings } from '../action/navigation';
|
|||
import navigation from '../state/navigation';
|
||||
|
||||
function listenKeyboard(event) {
|
||||
// Ctrl +
|
||||
if (event.ctrlKey) {
|
||||
// Ctrl/Cmd +
|
||||
if (event.ctrlKey || event.metaKey) {
|
||||
// k - for search Modal
|
||||
if (event.keyCode === 75) {
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue