The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

LibUI::Area::KeyEvent - LibUI::Area Keyboard Event

SYNOPSIS

    TODO

DESCRIPTION

A LibUI::Area::Handler passes this when the keyEvent callback is triggered.

Fields

Being a struct, a mouse event contains the following data:

key - key code
extKey - extended key code
modifier - see LibUI::Area::Modifiers
modifiers - see LibUI::Area::Modifiers
up - a value indicating which key has been released, if applicable

Extended Key Codes

Here's the current list of values:

ExtKeyEscape1
ExtKeyInsert - equivalent to "Help" on Apple keyboards
ExtKeyDelete
ExtKeyHome
ExtKeyEnd
ExtKeyPageUp
ExtKeyPageDown
ExtKeyUp
ExtKeyDown
ExtKeyLeft
ExtKeyRight
ExtKeyF1 - F1..F12 are guaranteed to be consecutive
ExtKeyF2
ExtKeyF3
ExtKeyF4
ExtKeyF5
ExtKeyF6
ExtKeyF7
ExtKeyF8
ExtKeyF9
ExtKeyF10
ExtKeyF11
ExtKeyF12
ExtKeyN0 - numpad keys; independent of Num Lock state
ExtKeyN1 - N0..N9 are guaranteed to be consecutive
ExtKeyN2
ExtKeyN3
ExtKeyN4
ExtKeyN5
ExtKeyN6
ExtKeyN7
ExtKeyN8
ExtKeyN9
ExtKeyNDot
ExtKeyNEnter
ExtKeyNAdd
ExtKeyNSubtract
ExtKeyNMultiply
ExtKeyNDivide

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Sanko Robinson <sanko@cpan.org>