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 commandKey = window.platform === 'darwin' && metaKey;
|
||||||
const controlKey = window.platform !== 'darwin' && ctrlKey;
|
const controlKey = window.platform !== 'darwin' && ctrlKey;
|
||||||
const commandOrCtrl = commandKey || controlKey;
|
const commandOrCtrl = commandKey || controlKey;
|
||||||
|
const commandAndCtrl = commandKey && ctrlKey;
|
||||||
|
|
||||||
const state = store.getState();
|
const state = store.getState();
|
||||||
const selectedId = state.conversations.selectedConversation;
|
const selectedId = state.conversations.selectedConversation;
|
||||||
|
@ -1013,7 +1014,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Search
|
// Search
|
||||||
if (commandOrCtrl && !shiftKey && (key === 'f' || key === 'F')) {
|
if (
|
||||||
|
commandOrCtrl &&
|
||||||
|
!commandAndCtrl &&
|
||||||
|
!shiftKey &&
|
||||||
|
(key === 'f' || key === 'F')
|
||||||
|
) {
|
||||||
const { startSearch } = actions.search;
|
const { startSearch } = actions.search;
|
||||||
startSearch();
|
startSearch();
|
||||||
|
|
||||||
|
@ -1026,6 +1032,7 @@
|
||||||
if (
|
if (
|
||||||
conversation &&
|
conversation &&
|
||||||
commandOrCtrl &&
|
commandOrCtrl &&
|
||||||
|
!commandAndCtrl &&
|
||||||
shiftKey &&
|
shiftKey &&
|
||||||
(key === 'f' || key === 'F')
|
(key === 'f' || key === 'F')
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue