[Free] Keyboard Listener Extension

Are you looking for extention that tell you which key is pressed on keyboard?

:hammer_and_pick: keyboard listener is a non visible component that listen and return unicode of any keys from external keyboard. include :keyboard: back press, :keyboard: OK, :keyboard: enter(new line), :keyboard: space, :keyboard: Go and all other key based on their unique character code.
you can see unicode of all characters here Unicode of characters :keyboard:

:desktop_computer: Blocks

Block 1: Register textbox for input

Registers a TextBox to listen for all input from the on-screen keyboard, including Backspace and keyboard hiding.

Block 2: Character received

Triggered when a character is received from the on-screen keyboard. The keyCode will be 0.

Block 3: Backspace pressed

Triggered when the backspace key is pressed. Returns the standard key code for backspace (67).

Block 4: KeyboardHidden

Some times your textbox may not be multiple line. in case of that enter will be changed to hide, go, ok or search button. so this event will return -2 when ever you click enter or ok in this case.

Triggered when the on-screen keyboard is hidden/dismissed. Returns a custom key code of -2.

Block 5: Unregister Textbox

component_method(4)

Stops listening for input from the previously registered TextBox.

:crossed_swords: Example Blocks

Instruction to use

:hammer_and_pick: Step 1: add Registertextboxforinput function in the screen initializing event with text box component name you want to retrieve Unicode.

:hammer_and_pick: Step 2: Accepting Unicode when ever keyboard keys are clicked. in my case i use label to show Unicode of every clicked keys on keyboard.

Output screen record

Download link

Extension
com.KeyListener.KeyListener.aix (8.3 KB)

Sample .aia file
keyboard1.aia (10.6 KB)

:partying_face: :partying_face:Happy koding

1 Like

Hi, Is there a way to listen for the Enter key on the screen keyboard?
The .CharacterReceived event doesn't trigger for this key!
Thanks,
C

We haven't seen @sol_roll since Oct 25, hopefully they may pick up on your post.

You can set the multiline attribute on for the textbox and check for the introduction of \n (new line) in the text.