Try again to fix fullscreen keyboard shortcut on linux

This commit is contained in:
Bryan Housel
2017-06-10 17:44:17 -04:00
parent ba8b0782b0
commit 7030c15d0c
+4 -4
View File
@@ -151,8 +151,8 @@ export function uiShortcuts() {
.data(function (d) {
if (detected.os === 'win' && d.text === 'shortcuts.editing.commands.redo') {
return ['⌘'];
} else if (detected.os === 'mac' && d.text === 'shortcuts.browsing.display_options.fullscreen') {
return ['⌃', '⌘'];
} else if (detected.os !== 'mac' && d.text === 'shortcuts.browsing.display_options.fullscreen') {
return [];
} else {
return d.modifiers;
}
@@ -178,8 +178,8 @@ export function uiShortcuts() {
var arr = d.shortcuts;
if (detected.os === 'win' && d.text === 'shortcuts.editing.commands.redo') {
arr = ['Y'];
} else if (detected.os === 'mac' && d.text === 'shortcuts.browsing.display_options.fullscreen') {
arr = ['F', 'F11'];
} else if (detected.os !== 'mac' && d.text === 'shortcuts.browsing.display_options.fullscreen') {
arr = ['F11'];
}
return arr.map(function(s) {