[Feature]: Support using the "Fn" key alone as push-to-talk hotkey on macOS

Abierto
#1,083 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
50/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
macos, rust, tauri
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Rust
Estrellas
3.7k
Forks
349
Merge medio
2 d 14 h
PR fusionados (30 d)
97

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Open-Less/openless

Todos los issues de Open-Less/openless

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.