feat(hotkey): make the new-entry hotkey configurable + fix tray title capture
Part A — Ctrl+Shift+A (new entry from window title) is now editable like the other 3 global hotkeys, following the same pattern end to end: state.newEntryHotkey (synced), a capture button in Settings > Autofill, dup cross-check, reset-to- defaults, autofillPushHotkeys, and Bridge.setAutofillHotkeys carrying ne_mods/ ne_vk. Delphi gets SetNewEntryHotkey + stores the live combo (FNewEntryHotkeyMods/ Vk) so ExecuteAutofill's post-fill re-register uses the user's combo instead of resetting to Ctrl+Shift+A. UMainForm parses ne_* unconditionally (works with autofill off). Part B — new-entry from the tray pre-filled the title with "Password Manager": GetForegroundWindow resolved to our own hidden window. Only capture the title when the foreground window belongs to another process; otherwise pass '' (blank). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -82,11 +82,13 @@ function autofillPushHotkeys() {
|
||||
localStorage.setItem('autofillHotkeyFull', JSON.stringify(state.autofillHotkeyFull));
|
||||
localStorage.setItem('autofillHotkeyPwd', JSON.stringify(state.autofillHotkeyPwd));
|
||||
localStorage.setItem('quickSearchHotkey', JSON.stringify(state.quickSearchHotkey));
|
||||
localStorage.setItem('newEntryHotkey', JSON.stringify(state.newEntryHotkey));
|
||||
if (Bridge.active) {
|
||||
Bridge.setAutofillHotkeys(state.autofillEnabled, {
|
||||
full: state.autofillHotkeyFull,
|
||||
password: state.autofillHotkeyPwd,
|
||||
quickSearch: state.quickSearchHotkey,
|
||||
newEntry: state.newEntryHotkey,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user