Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按键定义无效 #1469

Open
imbear opened this issue Sep 21, 2024 · 2 comments
Open

按键定义无效 #1469

imbear opened this issue Sep 21, 2024 · 2 comments

Comments

@imbear
Copy link

imbear commented Sep 21, 2024

摘要 / Summary

尝试自定义键盘时发现一些问题

重现步骤 / Steps to Reproduce

问题1. 定义按键时使用相应的英文符号定义,可以正常输出中文/英文符号;使用中文符号按压无任何效果

shuangyinhao: { label: '"', text: '""{Left}' }
shuangyinhao2: { label: '"', text: '“”{Left}' }

有效
{ click: 'j', long_click: shuangyinhao, swipe_down: shuangyinhao, __include: styl/key }
无效
{ click: 'j', long_click: shuangyinhao2, swipe_down: shuangyinhao2, __include: styl/key }

※ 在使用自带的同文风键盘时,发现bqfh1键盘上的中文符号无效,英文符号有效,粗略看了下tongwenfeng.trime.yaml中的定义,貌似是一样的问题

- {click: '“”{Left}'}
- {click: "‘’{Left}"}
- {click: 'ˆˇ{Left}'}
- {click: '(){Left}'}

问题2. 相同的定义,英文键盘有效,中文键盘无效

num1: { label: 1, text: 1 }

英文下有效,中文下无效
{ click: 'q', long_click: num1, __include: styl/key }

中文下改成如下定义就有效了
{ click: 'q', long_click: 1, __include: styl/key }

预期行为 / Expected Behavior

正常按键

日志 / Log

No response

截图 / Screenshot

No response

附加信息 / Additional Context

No response

系统版本 / OS Version

android

应用版本 / App Version

com.osfans.trime-v3.3.0-0-g436c8fc4-arm64-v8a-release

构建信息 / Build Information

构建者:F-Droid
Git 仓库:https://github.com/osfans/trime
构建 Git 哈希:436c8fc42af638fdd8744533beec03567ec03c6c
构建时间:2024年9月8日 18:18:51

@Wenti-D
Copy link

Wenti-D commented Sep 22, 2024

似乎与 #1454 是一个问题?

@stfy11
Copy link

stfy11 commented Sep 27, 2024

不知是不是#1454,用了最新每夜版 fe9c39d 還是存在問題,有些自定義鍵在中文鍵盤不起作用,英文鍵盤則可以,例如:
- {click: v, long_click: ' {paste} '}, 貼上前後沒有空格。這個問題沒有出現在v3.2.19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants