bind standard shortcuts on both command and ctrl modifiers, #254

This commit is contained in:
azivner
2018-12-10 20:44:50 +01:00
parent 87aab7ac5b
commit d30e3a4052
2 changed files with 15 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ function registerEntrypoints() {
}
});
$(document).bind('keydown', 'ctrl+f', () => {
function openInPageSearch() {
if (utils.isElectron()) {
const $searchWindowWebview = $(".electron-in-page-search-window");
$searchWindowWebview.show();
@@ -113,7 +113,13 @@ function registerEntrypoints() {
return false;
}
});
}
utils.bindShortcut('ctrl+f', openInPageSearch);
if (utils.isMac()) {
utils.bindShortcut('meta+f', openInPageSearch);
}
// FIXME: do we really need these at this point?
utils.bindShortcut("ctrl+shift+up", () => {