fix(fillbar): la barrette remplit meme quand les raccourcis sont coupes
"Autofill with global hotkey" desactive faisait ignorer a la page toute demande, barrette comprise. Delphi dit maintenant d'ou vient la demande ; seuls les raccourcis sont coupes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2267,7 +2267,8 @@ begin
|
|||||||
FAutofillClock := TStopwatch.StartNew;
|
FAutofillClock := TStopwatch.StartNew;
|
||||||
WebBrowser.ExecuteJavaScript(
|
WebBrowser.ExecuteJavaScript(
|
||||||
'if(window.Bridge&&typeof Bridge.onAutofillRequest==="function")' +
|
'if(window.Bridge&&typeof Bridge.onAutofillRequest==="function")' +
|
||||||
'Bridge.onAutofillRequest("' + LTitle + '","' + LKind + '")');
|
'Bridge.onAutofillRequest("' + LTitle + '","' + LKind + '",' +
|
||||||
|
BoolToStr(FBridge.LastRequestFromBar, True).ToLower + ')');
|
||||||
LogLine('Autofill ' + IfThen(FBridge.LastRequestFromBar, 'fill bar', 'hotkey') +
|
LogLine('Autofill ' + IfThen(FBridge.LastRequestFromBar, 'fill bar', 'hotkey') +
|
||||||
' (' + LKind + ') — foreground: "' + ATitle + '"');
|
' (' + LKind + ') — foreground: "' + ATitle + '"');
|
||||||
end;
|
end;
|
||||||
|
|||||||
+4
-2
@@ -235,8 +235,10 @@ function autofillReportResult(ok) {
|
|||||||
|
|
||||||
// Called by Bridge.onAutofillRequest when a hotkey fires.
|
// Called by Bridge.onAutofillRequest when a hotkey fires.
|
||||||
// kind: 'full' = Ctrl+Shift+L (user + Tab + pwd) ; 'password' = Ctrl+Shift+P.
|
// kind: 'full' = Ctrl+Shift+L (user + Tab + pwd) ; 'password' = Ctrl+Shift+P.
|
||||||
async function autofillHandleRequest(windowTitle, kind) {
|
async function autofillHandleRequest(windowTitle, kind, fromBar) {
|
||||||
if (!state.autofillEnabled) return;
|
// L'option ne coupe que les RACCOURCIS (« Autofill with global hotkey ») :
|
||||||
|
// la barrette est un geste explicite, elle remplit quand meme.
|
||||||
|
if (!state.autofillEnabled && !fromBar) return;
|
||||||
|
|
||||||
// A blocking operation owns the screen (export, sync, rotation). Covers all
|
// A blocking operation owns the screen (export, sync, rotation). Covers all
|
||||||
// three hotkeys and both outcomes: the multi-match picker would open behind
|
// three hotkeys and both outcomes: the multi-match picker would open behind
|
||||||
|
|||||||
@@ -117,8 +117,8 @@ const Bridge = (() => {
|
|||||||
// Called by Delphi when a hotkey fires. windowTitle = foreground
|
// Called by Delphi when a hotkey fires. windowTitle = foreground
|
||||||
// window title at hotkey time. kind = "full" (user+Tab+pwd) or
|
// window title at hotkey time. kind = "full" (user+Tab+pwd) or
|
||||||
// "password" (password only — for step-2 forms, unlock screens).
|
// "password" (password only — for step-2 forms, unlock screens).
|
||||||
onAutofillRequest(windowTitle, kind) {
|
onAutofillRequest(windowTitle, kind, fromBar) {
|
||||||
autofillHandleRequest(windowTitle, kind || 'full');
|
autofillHandleRequest(windowTitle, kind || 'full', !!fromBar);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Called by Delphi after cmd://autofill/execute with whether the
|
// Called by Delphi after cmd://autofill/execute with whether the
|
||||||
|
|||||||
Reference in New Issue
Block a user