Skip to content

The inputChar event does not work #40

@alexispurslane

Description

@alexispurslane

I have this code:

 36 win.on('inputChar', (onKey))

and then for onKey:

  6 function onKey (_, charCode, __) {
  7     if (charCode == nc.keys.ENTER) {
  8         if (cX > 2) {
  9             cX++;
 10             nc.refresh();
 11         }
 12     }
 13 }

yet, it does NOTHING, but also has no error. help?

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