Giter Club home page Giter Club logo

Comments (6)

sonald avatar sonald commented on July 20, 2024

这里有两层:

  • 跟踪记录keycode <->keysym的变化。感觉可以直接用xkb的api来做。
  • 不管在go daemon端那边处理还是控制中心前端处理,对于用户来说,它看到的东西还是控制中心里呈现的super+a,切换布局后,这里要不要跟着更新为super+Cyrillirc_a。 如果不更新,一是wm会读取错误的keysym组合,得不到正确的keycode来生成快捷键。而且用户此时重设了某个快捷键,显示的就是新layout下的字符串表示。这样两种布局的快捷键字符串表示就混在一起了。乱了。

直接将键盘布局设为输入法,不知道这个方法如何,以前在 fcitx 的 dbus 接口里看到过键盘布局相关的接口的,现在里面没发现了。

这个我不太懂:)

@manateelazycat @hualet @snyh @jouyouyun 有什么看法。不知道有没有DE能正确处理这个事情的。

from developer-center.

snyh avatar snyh commented on July 20, 2024

这个问题,有没有明确知道用户正确效果应该是怎样的? 
技术方面我觉得还好解决, 主要是多布局的切换行为到底如何算正确行为的理解不够

from developer-center.

sonald avatar sonald commented on July 20, 2024

对,就是怎样算合理的处理方式。回到源头,为啥GNOME和KDE都处理不好?会不会是个伪命题,正确的打开方式不是在安装的时候或者初次配置向导里选择好键盘布局,在那里一次性修改了所有配置文件里关于快捷键的定义。运行时切换的需求大么

from developer-center.

manateelazycat avatar manateelazycat commented on July 20, 2024

运行时切换键盘布局的需求很简单, 西班牙语, 他们都是直接输入键盘字符的(英文或西班牙字符), 不需要像我们输入法那样切换。
所以他们在输入英文和输入西班牙语的时候就是通过快速切换键盘布局来做的, 就像我们中文来切换输入法一样, 会看托盘的图标, 只不过他们是直接输入字符, 不用输入法参与。

from developer-center.

snyh avatar snyh commented on July 20, 2024

@manateelazycat 切换布局这个需求大家都能接受理解. 只是在切换时的快捷键处理不明确(至少我个人不能完全理解到底要做什么)
@maggielf 提出的加上日语这类键盘的时候又是个什么情况. 

from developer-center.

hualet avatar hualet commented on July 20, 2024

已采取在当前的键盘布局后面跟上us布局的方式处理

from developer-center.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.