Skip to content

Is it possible to have callback for keypress? #425

Open

Description

@mi4code

Is it possible to have callback for keypress?

I'd like to detect CapsLock being pressed.

I tried editor.callback(foo, [SCINTILLANOTIFICATION.KEY]) but the callback never ran.

Activity

  1. Ekopalypse commented on Sep 28, 2026

    @Ekopalypse
    Contributor

    This callback is NOT called on windows.
    To achieve your aim, you would need to subclass the editor controls and check for key press or release messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions