Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the Esc key in the terminal fire only when it is physically released #709

Merged
merged 3 commits into from
Mar 1, 2025

Conversation

o-sdn-o
Copy link
Collaborator

@o-sdn-o o-sdn-o commented Mar 1, 2025

Changes

  • Make the Esc key in the terminal fire only when it is physically released.

  • Introduce vtm.terminal.KeyEvent({...}, ..., {...}) function.

    attribute type description
    keystat Integer Key state: 0 - released; 1 - pressed; 2 - repeated.
    ctlstat Integer Keyboard modifiers (bit-field).
    virtcod Integer Key virtual code.
    scancod Integer Key scan code.
    keycode Integer Vtm specific key code.
    extflag Integer Extended flag (win32 specific).
    cluster String Text string generated by the key.

    Example:

    vtm.terminal.KeyEvent({ keystat=1, virtcod=0x1b, scancod=1, cluster='\\u{1b}' })
    

@o-sdn-o o-sdn-o merged commit d035f38 into directvt:master Mar 1, 2025
8 checks passed
@o-sdn-o o-sdn-o deleted the gui-bridge branch March 1, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant