[Feature]: Support using the "Fn" key alone as push-to-talk hotkey on macOS
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start at the CGEventTap-based hotkey recorder named in the issue and confirm which event types it currently listens for; Fn arrives as a flagsChanged event from the 0x00FF Apple vendor top-case HID page, not keyDown, so the recorder never sees it. Then find the settings hotkey-recorder field and its persisted hotkey value so a separate "Use Fn key" toggle can be added alongside it. Done means Fn can be set alone as push-to-talk and the recording field visibly detects the press; there is no linked PR or assignee yet, so check comments before starting.
由索引模型根據 Issue 內容生成。
描述
Area
Voice capture / hotkey
Problem or workflow
On MacBook Pro (and other MacBook models), the physical keyboard has no "Right Control" key — only a left Control key. The current default hotkey shown in settings is "Right ^" (Right Control), which cannot be pressed at all on the built-in keyboard.
I tried setting the hotkey to "Fn" instead (as some alternative dictation tools support), but the hotkey recorder does not detect the Fn key press at all — nothing happens when Fn is pressed in the recording field.
This is likely because Fn triggers a flagsChanged event on macOS rather than a standard keyDown event, and the hardware sits on a different HID usage page (0x00FF, Apple vendor top-case keys) than regular keys, which the current CGEventTap-based hotkey recorder does not capture.
Proposed Solution
Add a dedicated "Use Fn key" option (similar to a toggle, separate from the normal hotkey recorder) that listens for Fn via flagsChanged events at the .cghidEventTap level, consistent with how other Mac dictation tools have implemented this (e.g. OpenTypeless shipped Fn support in v1.1.49 via the native hotkey path).
Alternatives Considered
Currently working around this by using Right Option (⌥) as the hotkey instead, since it's a real key on the built-in keyboard. This works but is less convenient for one-handed triggering compared to Fn.
Additional Context
- macOS version: MacOS 26.6.2 (25G83)
- OpenLess version: Version 1.3.18 (1.3.18)
- Hardware: MacBook Pro
Before submitting
- I have searched existing issues and discussions.
- I am willing to help test this feature if it lands.
- 主要語言
- Rust
- 星號
- 3.7k
- 分支
- 349
- 平均合併
- 1 天 18 小時
- 30 天內合併 PR
- 93
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Open-Less/openless 的其他 Issue
-
enhancement P1
難度 2/5 1-3 小時 新手友好度 63/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
[windows] 录音快捷键还不支持设置为ScrllLock键可能已有人在做 @HKLHaoBin 於 11 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 75/100
Open-Less/openless#1241 · 5 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 45/100
Open-Less/openless#1384 · 2 則留言 ·
維護者通常 1 天內回覆
-
[area] 快捷键不起效可能已有人在做 @HKLHaoBin 今天認領。 未關閉bug
Open-Less/openless#1383 · 2 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 Open-Less/openless 的全部 Issue
相似的 Issue
-
auto:producer auto:security
難度 2/5 1-3 小時 新手友好度 66/100
fritzprix/libr-agent#2595 ·
維護者通常 1 天內回覆
-
area:fs type:fix
難度 2/5 1-3 小時 新手友好度 76/100
Tripstack-Corp/spyc#1002 ·
維護者通常 1 天內回覆
-
github_actions security
難度 2/5 1-3 小時 新手友好度 85/100
dekobon/big-code-analysis#1815 ·
維護者通常 1 天內回覆
-
[Detail Bug] Request logs can be forged via control characters in fetch object keys (log injection)未關閉
難度 2/5 1-3 小時 新手友好度 82/100
s2-streamstore/cachey#211 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆