Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | event.keyboard:press SEARCH    

  Events
event.keyboard:down
event.keyboard:global:down
event.keyboard:global:up
event.keyboard:press
event.keyboard:up

  Functions
keyboard.global.code
keyboard.ID.char
keyboard.ID.code
keyboard.keyState

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Event
event.keyboard:press

Language: MioScript
Product: MioFactory


Raised when the window has the focus and when the user presses and releases a key.

The value of the key can be retrieved with keyboard.ID.code and keyboard.ID.char.


Author Window ID
 
The ID of the window who raised the event can be retrieved with window.eventAuthor

Group Name
 
As this event is raised by a window, the window group name must be added at the end of the declaration.

For more information: window.create, window.ID.create, window.ID.group.set



MioScript Sample Code

event.keyboard:press
    alert(keyboard.main.code())
    alert(keyboard.main.char())
event.end