切换 ABC 和中文输入法时的 bug

Aperta
#102 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
swift
Ambito
desktop

Direzione di ricerca

This is a user bug report about a ~1s race between switching input sources (fn key) and key-event handling on macOS: shift+- emits _ or — depending on which layout the system still thinks is active, plus a separate IME-freeze report (screenshot linked). Start with the InputSourcePro Swift sources that perform input source switching and any code mapping key events/layouts, and check the other two comments on the issue for maintainer direction before writing code. Done means reproducing the race on macOS and identifying (or fixing) where the stale layout state persists after a switch.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

当前如果是中文输入法,按 fn 键切换至 ABC 输入法,立即按住 shift + - 号键来连续输入下划线,会发现从第二个字符开始就变成了破折号,像这样:_——————。
反之如果是 ABC 输入法,按 fn 键切换至中文输入法,立即按住 shift + - 号键来连续输入破折号,会发现从第二个字符开始就变成了下划线,像这样:——_____

系统是 MacOS 26.4,测试过搜狗输入法、微信输入法与 ABC 输入法进行切换都有问题。要想没有问题,就需要在切换后等待大约 1 秒钟再按键。

这个问题与 InputSourcePro 似乎没有关系,但不知道发到哪里去求助。不知道大家有没有遇到过这种情况。

另外,还有个问题也一并求助大佬们。切换中文输入法后,可能出现输入法卡死的情况(见图),经常需要反复切换输入法数十次才能恢复。

Image
Lingua principale
Swift
Stelle
3.6k
Fork
144
Merge medio
4h 16m
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di runjuu/InputSourcePro

Tutte le issue di runjuu/InputSourcePro

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.