Add cmd + k hotkey for mac os
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user