RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Key_Pressed

WindowManager
» SWI Calls
» Wimp_Poll
» Reason Codes
» Key_Pressed

Key_Pressed

(Reason Code 8)
Exit
Block
+0 Window handle with focus
+4 Icon handle, or -1 if none
+8 X offset of caret (relative to window origin)
+12 Y offset of caret (relative to window origin)
+16 Caret Flags
+20 Index of caret into string (if icon)
+24 Character Code (4 bytes)

Use

This code is returned from Wimp_Poll and indicates that a key has been pressed while a window belonging to the current application has the input focus.

Notes

If the application does not wish to act upon a keypress such as a ‘hot key’, then the keypress can be passed on to other applications by calling Wimp_ProcessKey.

If the caret is inside a writeable icon when a key is pressed, Wimp_Poll will not generate this code for Wimp Managed Key Presses.

Wide characters are reported using multiple Key_Pressed events.

See also

  • Reason Codes
  • Wimp Managed Key Presses
  • Wimp_Poll
  • Wimp_ProcessKey
Revised on December 9, 2013 19:45:48 by Steve Pampling (1551)? (81.129.95.225)
Edit | Back in time (5 revisions) | See changes | History | Views: Print | Source | Linked from: WindowManager General Principles, WindowManager Keyboard Input And Text Handling, Caret Flags, Poll Mask, Character Codes, Wimp_ProcessKey, Reason Codes, Wimp Managed Key Presses

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys