From 812d816d031faf4a40aa0370871073acb8f140d0 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Wed, 4 Apr 2018 12:07:03 +0300 Subject: [PATCH] Modify shortcuts --- keepassxc-browser/manifest.json | 4 ++-- keepassxc-browser/options/options.html | 4 ++-- keepassxc-browser/options/options.js | 12 ++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/keepassxc-browser/manifest.json b/keepassxc-browser/manifest.json index 0838780..f6e0b79 100755 --- a/keepassxc-browser/manifest.json +++ b/keepassxc-browser/manifest.json @@ -72,8 +72,8 @@ "fill-password": { "description": "Insert a password", "suggested_key": { - "default": "Alt+Shift+P", - "mac": "MacCtrl+Shift+P" + "default": "Alt+Shift+I", + "mac": "MacCtrl+Shift+I" } }, "fill-totp": { diff --git a/keepassxc-browser/options/options.html b/keepassxc-browser/options/options.html index 55e060f..34961b1 100644 --- a/keepassxc-browser/options/options.html +++ b/keepassxc-browser/options/options.html @@ -29,9 +29,9 @@

General Settings


- If you just want to insert username + password into the fields where your focus is, press Alt + Shift + U. + If you just want to insert username + password into the fields where your focus is, press Ctrl + Shift + UAlt + Shift + U.
- If you only want to insert the password, just press Alt + Shift + P. + If you only want to insert the password, just press Ctrl + Shift + IAlt + Shift + I. You can customize these shortcuts on chrome://extensions/configureCommands page

diff --git a/keepassxc-browser/options/options.js b/keepassxc-browser/options/options.js index b4d826a..83fcdeb 100644 --- a/keepassxc-browser/options/options.js +++ b/keepassxc-browser/options/options.js @@ -261,4 +261,16 @@ options.initAbout = function() { if (isFirefox()) { $('#chrome-only').remove(); } + + if (navigator.platform === 'MacIntel') { + $('#default-user-shortcut').hide(); + $('#default-pass-shortcut').hide(); + $('#mac-user-shortcut').show(); + $('#mac-pass-shortcut').show(); + } else { + $('#mac-user-shortcut').hide(); + $('#mac-pass-shortcut').hide(); + $('#default-user-shortcut').show(); + $('#default-pass-shortcut').show(); + } };