Skip to content

Feature request / question: Get modifier keys on keyboard event #5318

Closed
@novak-services

Description

@novak-services

To fully support the keyboard in my application, I would need to be able to get the current state of the modifier keys (shift,control,meta).

The key event does not provide that. For example if I press the return key, I see no difference if I press return with or without space key.

Interestingly Mouse events seem to support it, but I do not want to wait for a mouse event to fire -- the interactions should be triggered from the keyboard alone.

It also could be a separate function to get that state, but it really would make my application possible, since I would need to find another way of implementing it, if it is not possible in textual.

Is there a way to do that already (I scanned the documentation and FAQ but found nothing yet)? If not, would it be possible to integrate such a functionality in reasonable time?

Could that be available with "Extended keys" #3411 ? That would also be a possibility for me, to use such a terminal, but I saw no possibility to integrate it into the current Key event structure, so I did not try a terminal with that support yet.

Any response would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions