WKeyEvent [doc]

The WKeyEvent provides detailed information for a keyboard event. Type in the line edits below to demonstrate the events. In general, keyboard events can be generated by every WInteractWidget, provided that either the widget itself has keyboard focus, or one of its children. While form widgets can receive keyboard focus out of the box, this must be enabled for other passive widgets by adding them to the tab chain using setTabIndex(0), and will not work on older browsers.

This line edit listens to keyWentUp() and keyWentDown() events.

The next line edit listens to keyPressed() events.

In the line edit below, the events enterPressed() and escapePressed() are shown (note however that catching escape is a major problem in most browsers; do not expect it to work).


Last event:
Events will be shown here.