fix(suggestion): paste after the shortcut keys are released and keep typing detection stable
Ctrl+Alt+Enter pasted while Ctrl+Alt were still down, so the target app got Ctrl+Alt+V; accepting now closes the panel and waits for the modifiers to be released. Candidates are accepted on pointer press because the list is redrawn as new candidates stream in, which swallowed clicks. The typing gate identified the focused field by its bounds, so chat boxes that grow while typing looked like a new field on every keystroke and were reported as "not typing". Fields are now keyed by window, control type and name, and a mouse click re-baselines the text instead. The decision log includes both gate values. The live-caption model selector moves to the caption section of the General tab, next to the other caption settings.
This commit is contained in:
parent
4b0f685941
commit
da0da98285
8 changed files with 144 additions and 55 deletions
|
|
@ -7,6 +7,7 @@ import { initLoggerService, getLogger } from './services/LoggerService'
|
|||
import { initConfigService, configGet, configSet } from './services/ConfigService'
|
||||
import { getKeyBindingService, uiohookCodeToVk } from './services/KeyBindingService'
|
||||
import { acquireGlobalInputHook } from './services/global-input-hook'
|
||||
import { trackModifierKeys } from './services/modifier-state'
|
||||
import { getVoiceModeService } from './services/VoiceModeService'
|
||||
import { startLocalLLMAvailability, getLocalLLMService } from './services/LocalLLMService'
|
||||
import { getHistoryService } from './services/HistoryService'
|
||||
|
|
@ -224,6 +225,8 @@ async function initInputIntelligence(): Promise<void> {
|
|||
// KeyBindingService 의 등록 바인딩 경로로는 절대 들어오지 않는다 — 원본 keydown을
|
||||
// 직접 듣는다(InputTelemetryService/KeyBindingService 가 이미 쓰는 것과 같은 패턴).
|
||||
acquireGlobalInputHook()
|
||||
// 단축키로 수락할 때 Ctrl/Alt 를 뗄 때까지 기다리려면 누른 순간부터 추적해야 한다.
|
||||
trackModifierKeys()
|
||||
uIOhook.on('keydown', (event: UiohookKeyboardEvent) => {
|
||||
if (uiohookCodeToVk(event.keycode) !== VK.Escape) return
|
||||
const shouldDismiss = shouldDismissOnEscape(suggestion.isPresentationActive, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue