Mos icon indicating copy to clipboard operation
Mos copied to clipboard

关于自定义按键

Open Gavinzll opened this issue 4 months ago • 2 comments

自定义按键现已经是比较好用了,但是在我的实际使用场景中还是有一些功能性的一些缺失。第一是修饰键作为单独的按键触发快捷,要分左右比如现在来讲Command键,你只要映射了,它只映射Command键的这个修饰键逻辑,但它并不映射具体的键位。第二是鼠标的实体按键映射长按和双击类型的事件触发。

Scope | 范围

  • [ ] Existing feature improvement | 现有功能改进

Environment | 环境信息

  • macOS version | macOS 版本:15.7.3 (24G419)

Gavinzll avatar Jul 28 '26 04:07 Gavinzll

补充一个左右修饰键的实际使用场景,希望作者可以考虑支持。 目前 Mos 在「偏好设置 → 按键 → 操作 → 修饰键」中,提供了 Shift、Option、Control、Command、Function 等选项,但这些修饰键无法区分键盘左右两侧。 希望增加以下功能:

  1. 支持左右修饰键独立选择
    • Left Shift / Right Shift
    • Left Option / Right Option
    • Left Control / Right Control
    • Left Command / Right Command
  2. 支持将鼠标按键映射为指定的左右修饰键 例如:
    • 鼠标前进键 → Right Command
    • 鼠标其他按键 → Left Option 希望映射后能够保持正常的按下和松开行为,并支持与其他按键组合使用。
  3. 支持左右修饰键作为不同的触发条件 例如,Left Command 和 Right Command 可以分别绑定不同操作,而不是统一识别为 Command。
  4. 保留现有通用修饰键选项 为了兼容已有用户的设置,可以保留当前的 Shift、Option、Command 等选项,同时增加 Left / Right 选择。 使用价值: macOS 键盘左右两侧的修饰键在物理层面可以区分。如果 Mos 能够识别这些独立键位,就可以让用户充分利用左右修饰键进行鼠标映射和快捷键自定义,而不会占用已有的通用修饰键配置。 这对于使用鼠标侧键、快捷键较多的用户非常实用。 目前的设置界面截图已附上,供参考。 感谢作者持续开发 Mos!希望后续版本能够考虑加入这一功能。
Image

bbnotcode avatar Oct 09 '26 08:10 bbnotcode

I opened #1061 for the recording part of item 2 in the list above: pressing Right Option (or another right-side modifier) while recording a custom action now keeps the right key code, so a mouse button can be mapped to Right Option (for example as a dictation hotkey). Preset menu entries (item 1) and side-specific triggers (item 3) are not in that PR.

sanshengai avatar Nov 04 '26 03:11 sanshengai