mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #111 from keepassxreboot/shortcuts_fix
Modify shortcuts
This commit is contained in:
commit
1110d8f8f5
3 changed files with 16 additions and 4 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -267,4 +267,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();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue