diff --git a/apps/desktop/desktop_native/autotype/src/windows.rs b/apps/desktop/desktop_native/autotype/src/windows.rs index dba0251ed82..57770ba1d42 100644 --- a/apps/desktop/desktop_native/autotype/src/windows.rs +++ b/apps/desktop/desktop_native/autotype/src/windows.rs @@ -32,9 +32,9 @@ pub fn type_input(input: Vec) -> Result<(), ()> { let mut keyboard_inputs: Vec = Vec::new(); // Release hotkeys - keyboard_inputs.push(build_virtual_key_input(InputKeyPress::Up, 0x12)); // alt keyboard_inputs.push(build_virtual_key_input(InputKeyPress::Up, 0x11)); // ctrl - keyboard_inputs.push(build_unicode_input(InputKeyPress::Up, 105)); // i + keyboard_inputs.push(build_virtual_key_input(InputKeyPress::Up, 0x10)); // shift + keyboard_inputs.push(build_unicode_input(InputKeyPress::Up, 42)); // b for i in input { let next_down_input = if i == TAB_KEY { diff --git a/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts b/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts index 592d1e1b7a8..884a4fc1ce4 100644 --- a/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts +++ b/apps/desktop/src/autofill/main/main-desktop-autotype.service.ts @@ -7,7 +7,7 @@ import { WindowMain } from "../../main/window.main"; import { stringIsNotUndefinedNullAndEmpty } from "../../utils"; export class MainDesktopAutotypeService { - keySequence: string = "Alt+CommandOrControl+I"; + keySequence: string = "CommandOrControl+Shift+B"; constructor( private logService: LogService, diff --git a/apps/desktop/src/autofill/services/desktop-autotype.service.ts b/apps/desktop/src/autofill/services/desktop-autotype.service.ts index 434b79990a2..4cbe4fcfb93 100644 --- a/apps/desktop/src/autofill/services/desktop-autotype.service.ts +++ b/apps/desktop/src/autofill/services/desktop-autotype.service.ts @@ -86,7 +86,7 @@ export class DesktopAutotypeService { } async matchCiphersToWindowTitle(windowTitle: string): Promise { - const URI_PREFIX = "APP:"; + const URI_PREFIX = "apptitle://"; windowTitle = windowTitle.toLowerCase(); const ciphers = await firstValueFrom( @@ -107,7 +107,7 @@ export class DesktopAutotypeService { return false; } - const uri = u.uri.substring(4).toLowerCase(); + const uri = u.uri.substring(URI_PREFIX.length).toLowerCase(); return windowTitle.indexOf(uri) > -1; })