feat(input,voice): instant first-word-after-focus PC layout fix and speech disfluency post-processing (INPUT-04, INPUT-19, AI-03, AI-05)
This commit is contained in:
parent
dbed97c348
commit
7a86afa7b0
22 changed files with 359 additions and 39 deletions
|
|
@ -102,4 +102,22 @@ describe('포커스 깜빡임', () => {
|
|||
const context = await capture(snapshot({ appName: 'notepad.exe', text: '원래 있던 글' }))
|
||||
expect(context?.editedSinceFocus).toBe(false)
|
||||
})
|
||||
|
||||
it('검색창 등을 클릭한 직후 첫 스냅샷이 찍히기 전에 글자 키(ㅔㅊ 등)를 쳤다면 첫 스냅샷부터 editedSinceFocus 가 true 이다', async () => {
|
||||
const internal = service as unknown as Internal & {
|
||||
_handleMouseDown(event: { x: number; y: number; button: number }): void
|
||||
_handleKeyDown(event: {
|
||||
keycode: number
|
||||
ctrlKey?: boolean
|
||||
altKey?: boolean
|
||||
shiftKey?: boolean
|
||||
metaKey?: boolean
|
||||
}): void
|
||||
}
|
||||
internal._handleMouseDown({ x: 100, y: 100, button: 1 })
|
||||
internal._handleKeyDown({ keycode: 25 })
|
||||
const context = await capture(snapshot({ appName: 'SearchHost.exe', controlName: '검색 상자', text: 'ㅔㅊ' }))
|
||||
expect(context?.editedSinceFocus).toBe(true)
|
||||
expect(context?.typedRecently).toBe(true)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue