Restore macOS full screen shortcut (#3939)
This commit is contained in:
parent
18fd44f504
commit
3f6d4486f6
1 changed files with 8 additions and 1 deletions
|
@ -741,6 +741,7 @@
|
|||
const commandKey = window.platform === 'darwin' && metaKey;
|
||||
const controlKey = window.platform !== 'darwin' && ctrlKey;
|
||||
const commandOrCtrl = commandKey || controlKey;
|
||||
const commandAndCtrl = commandKey && ctrlKey;
|
||||
|
||||
const state = store.getState();
|
||||
const selectedId = state.conversations.selectedConversation;
|
||||
|
@ -1013,7 +1014,12 @@
|
|||
}
|
||||
|
||||
// Search
|
||||
if (commandOrCtrl && !shiftKey && (key === 'f' || key === 'F')) {
|
||||
if (
|
||||
commandOrCtrl &&
|
||||
!commandAndCtrl &&
|
||||
!shiftKey &&
|
||||
(key === 'f' || key === 'F')
|
||||
) {
|
||||
const { startSearch } = actions.search;
|
||||
startSearch();
|
||||
|
||||
|
@ -1026,6 +1032,7 @@
|
|||
if (
|
||||
conversation &&
|
||||
commandOrCtrl &&
|
||||
!commandAndCtrl &&
|
||||
shiftKey &&
|
||||
(key === 'f' || key === 'F')
|
||||
) {
|
||||
|
|
Loading…
Add table
Reference in a new issue