Skip to content

onKeyPressed doesn't listen for modified (e.g. ctrl-u, alt-a, etc.) characters #104

@stephentalley

Description

@stephentalley

Our app has a need to listen to various control-modified keys (ctrl-u, ctrl-f, ctrl-b, etc.). But:

session {
    var keyPressed by liveVarOf<Key?>(null)
    section {
        if (keyPressed != null) {
            textLine("key pressed: $keyPressed")
        }
    }.runUntilKeyPressed(Keys.Q, Keys.ESC) {
        onKeyPressed {
            keyPressed = key
        }
    }
}

…shows those keys are ignored.

Is there an API to listen for those keys?

  • OS: Linux
  • Version 1.1.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions