rime / squirrel

【鼠鬚管】Rime for macOS
https://rime.im
GNU General Public License v3.0
4.6k stars 412 forks source link

使用左右Shift选择二三候选词的问题 #813

Closed choijck closed 3 months ago

choijck commented 10 months ago

输入方案为雾凇拼音,添加了如下代码,使用左右Shift来选择第二三候选词。(不知道为什么要写Shift+Shift)


    # 二三候选词快捷键
    - { when: has_menu, accept: Shift+Shift_L, send: 2 }
    - { when: has_menu, accept: Shift+Shift_R, send: 3 }
``
但是在输入邮箱的时候,输入@,会导致第二候选+@上屏。

请问有没有方法可以继续保持左右Shift做候选词快捷键,又不影响拼音状态下的邮箱输入?
groverlynn commented 10 months ago

Shift+Shift_LShift是修飾鍵,Shift_L是主鍵。但凡Shift_LShift_R按下,必然伴隨Shift修飾狀態。也就是説不可能存在單獨的Shift_LShift_R。而Rime要求必須提供主鍵,所以不能只有Shift(或者説這種情況下Shift被當作主鍵,然而不存在名為Shift的主鍵)。 既然你已經定死了主鍵是Shift_L,修飾鍵是Shift,那麼你按下Shift_L的時候必然要立刻響應對應動作(第二候選上屏),就如同你按下2。規則寫得這麼死,繞不過啊。

netvolcano commented 3 months ago

哪位大侠能够解决这种这个问题呢?在使用Shift输入大写字母的时候,与使用shift来选择候选词,这两个功能如何能避免冲突?如果达到以前拼音加加的效果,就非常好了。

netvolcano commented 3 months ago

希望能尽早看到你的解决方案,^-^

Sender: LEO Yoon-Tsaw Send Time: 2024-05-17 08:37 Receiver: rime/squirrel cc: netvolcano; Comment Subject: Re: [rime/squirrel] 使用左右Shift选择二三候选词的问题 (Issue #813) 我感覺我能解決此問題,如果按下Shift後直接放開,則選字,如果按下後又按了其它鍵,則不再選字 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

LEOYoon-Tsaw commented 3 months ago

希望能尽早看到你的解决方案,^-^

https://github.com/LEOYoon-Tsaw/squirrel/commit/e101438d84d929ea72a6f8aa34610f899a792e0b

LEOYoon-Tsaw commented 3 months ago

@netvolcano 幫忙測一下看看解決問題沒有 https://github.com/LEOYoon-Tsaw/squirrel/releases/tag/0.99.5

netvolcano commented 3 months ago

囧,我是一个windows用户,无法使用这个版本来测试。

Sender: LEO Yoon-Tsaw Send Time: 2024-05-17 22:42 Receiver: rime/squirrel cc: netvolcano; Mention Subject: Re: [rime/squirrel] 使用左右Shift选择二三候选词的问题 (Issue #813) @netvolcano 幫忙測一下看看解決問題沒有 https://github.com/LEOYoon-Tsaw/squirrel/releases/tag/0.99.5 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

lotem commented 3 months ago

這個功能目前不支持。

而且他跟前端沒有關係,最好不要在前端處理。

lotem commented 3 months ago

r²ime 會支持~

LEOYoon-Tsaw commented 3 months ago

這個功能目前不支持。

而且他跟前端沒有關係,最好不要在前端處理。

行,那還是不改了,移到librime吧