Modify shortcuts

This commit is contained in:
varjolintu 2018-04-04 12:07:03 +03:00
parent 7d631b5f94
commit 812d816d03
3 changed files with 16 additions and 4 deletions

View file

@ -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": {

View file

@ -29,9 +29,9 @@
<h2>General Settings</h2>
<hr />
<p>
If you just want to insert username + password into the fields where your focus is, press <code>Alt + Shift + U</code>.
If you just want to insert username + password into the fields where your focus is, press <code><span id="mac-user-shortcut">Ctrl + Shift + U</span><span id="default-user-shortcut">Alt + Shift + U</span></code>.
<br />
If you only want to insert the password, just press <code>Alt + Shift + P</code>.
If you only want to insert the password, just press <code><span id="mac-pass-shortcut">Ctrl + Shift + I</span><span id="default-pass-shortcut">Alt + Shift + I</span></code>.
<span id="chrome-only">You can customize these shortcuts on <code>chrome://extensions/configureCommands</code> page</span>
</p>
<p>

View file

@ -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();
}
};