Skip to content

Special keys aren't working on CEF #14

@1bye

Description

@1bye

The issue occurs on macOS; I haven’t tested it on Windows or Linux yet. Keys like Enter, Backspace, Shift, etc. don’t work. As I understand it, character input is handled at the OS level rather than by gpui. I tried investigating how to fix it in C++, but didn’t get anywhere. I also attempted to disable OS-level keyboard handling, and after that nothing worked at all. As well I was trying to map native_key_code and etc..

Just looking for ideas, as I fix it I'll make PR.

Screen.Recording.2025-11-16.at.18.47.24.mov

EDIT: The Enter kinda works, but becuase of cef handles it on OS-Level and captures Enter as char code \n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions