Web player intercepts ⌘⇧M and blocks Chrome profile-menu shortcut
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 80/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- frontend
Línea de trabajo
Empieza en apps/web/app/s/[videoId]/_components/video/media-player.tsx, alrededor de las líneas 504-553, donde el manejador de keydown cambia según event.key.toLowerCase() y llama a preventDefault() para 'm'. Revisa cómo se gestionan las teclas modificadoras allí y luego añade un retorno temprano para Command, Control y Alt para que los atajos del navegador pasen sin cambios. Mantén la M sola para silenciar y los atajos de velocidad basados en Shift funcionando. Está terminado cuando un keydown con metaKey activo no tiene preventDefault aplicado y la M sola sigue alternando el silencio en una página compartida. El issue también pide revisar otros atajos de letras en el mismo manejador.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Cap's web video player intercepts ⌘⇧M (Command+Shift+M) on macOS, preventing Chrome's open profile menu shortcut from working when the player has focus. The player treats the modified shortcut as its plain M mute/unmute command and cancels the browser's default action.
Reproduction
- Open a Cap share page in Google Chrome on macOS, for example https://cap.so/s/mdvxms2gfmkgc0e.
- Focus the video player or one of its controls.
- Press ⌘⇧M.
Actual: Cap consumes the shortcut and toggles mute instead of allowing Chrome's profile menu to open.
Expected: Browser shortcuts containing Command should pass through. Plain M should continue to toggle mute.
Additional Context
- Affected component: Cap web share-page player (not the desktop recording app).
- Browser / OS: Google Chrome on macOS; the original reporter's exact versions were not collected.
- Live-page diagnostic: With the player focused, dispatching a cancelable
keydownwithkey: "M",metaKey: true, andshiftKey: truechanged the video'smutedstate fromfalsetotrueand setdefaultPrevented: true. This verifies the page handler consumes the modified key event; the diagnostic used a synthetic event, not a native Chrome profile-menu interaction. - Likely cause: the player's keyboard handler switches on
event.key.toLowerCase()and callspreventDefault()formwithout checking Command/Control/Option modifiers. Source: https://github.com/CapSoftware/Cap/blob/34036657845bf063c875e66a10ad537afa415f35/apps/web/app/s/%5BvideoId%5D/_components/video/media-player.tsx#L504-L553. - Suggested fix: ignore Command/Control/Alt-modified events before processing plain player shortcuts, while retaining intentional Shift-based shortcuts such as playback-speed controls. Please also check other letter shortcuts for the same browser-shortcut collision.
- Lenguaje dominante
- Rust
- Estrellas
- 23.4k
- Forks
- 2.1k
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 130
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CapSoftware/Cap
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
CapSoftware/Cap#2384 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dashboard pagination causes full page reloads on self-hosted CapPosiblemente ocupada @Dewin la tomó hace 30 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
CapSoftware/Cap#2305 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
CapSoftware/Cap#1714 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Linux: forced WEBKIT_DISABLE_DMABUF_RENDERER=1 makes the main window transparent on WebKitGTK 2.54 (only repainted regions show)Posiblemente ocupada @AatmanAJ la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
CapSoftware/Cap#2624 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
macOS: main-thread panic in tauri-runtime-wry 2.8.1 freezes Cap mid Instant recording; the crashed recording then can't be recovered or reuploadedPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
CapSoftware/Cap#2606 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de CapSoftware/Cap
Issues similares
-
The book has a Nix install section that chelis.ch lacks, and it names two of the three systemsAbiertoarea:ecosystem documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Chelis-Lang/chelis#3866 ·
Los mantenedores suelen responder en 1 día
-
[安卓Feature]: 数字键盘左侧符号区域大小优化Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
metasequoiaime/msime#8620 ·
Los mantenedores suelen responder en 1 día
-
agent-detection macos p2 triaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
bug documentation sev-0
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día