diff --git a/browser/src/components/keyboard/index.tsx b/browser/src/components/keyboard/index.tsx index ed994fd..bf3b9d6 100644 --- a/browser/src/components/keyboard/index.tsx +++ b/browser/src/components/keyboard/index.tsx @@ -6,6 +6,7 @@ import { getOperatingSystem } from '@/libs/browser'; import { device } from '@/libs/device'; import { KeyboardReport } from '@/libs/keyboard/keyboard.ts'; import { isModifier } from '@/libs/keyboard/keymap.ts'; +import { learnFromKeyEvent } from '@/libs/keyboard/layouts.ts'; interface AltGrState { active: boolean; @@ -69,6 +70,10 @@ export const Keyboard = () => { } pressedKeys.current.add(code); + + // Learn character mappings for paste feature + learnFromKeyEvent(event); + await handleKeyEvent({ type: 'keydown', code }); } diff --git a/browser/src/components/menu/keyboard/index.tsx b/browser/src/components/menu/keyboard/index.tsx index 7a1d4e7..4cc6214 100644 --- a/browser/src/components/menu/keyboard/index.tsx +++ b/browser/src/components/menu/keyboard/index.tsx @@ -2,6 +2,7 @@ import { useState } from 'react'; import { Popover } from 'antd'; import { KeyboardIcon } from 'lucide-react'; +import { LoginHelper } from './login-helper.tsx'; import { Paste } from './paste.tsx'; import { Shortcuts } from './shortcuts'; import { VirtualKeyboard } from './virtual-keyboard.tsx'; @@ -12,6 +13,7 @@ export const Keyboard = () => { const content = (
+ {t( + 'keyboard.loginHelper.description', + 'Use your password manager to auto-fill these fields, then send to the remote system.' + )} +
+ ++ {t( + 'keyboard.loginHelper.description', + 'Use your password manager to auto-fill these fields, then send to the remote system.' + )} +
+ +