h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » [[Wimp_Poll|Wimp_Poll]] h6(((. » [[Reason Codes|Reason Codes]] h6((((. » Key_Pressed h2. Key_Pressed h5. (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|Caret Flags]] | |>^. +20|Index of caret into string (if icon) | |>^. +24|[[Character Codes|Character Code]] (4 bytes)| h4. Use This code is returned from [[Wimp_Poll|Wimp_Poll]] and indicates that a key has been pressed while a window belonging to the current application has the input focus. h4. 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|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. h4. See also * [[Reason Codes|Reason Codes]] * [[Wimp Managed Key Presses|Wimp Managed Key Presses]] * [[Wimp_Poll|Wimp_Poll]] * [[Wimp_ProcessKey|Wimp_ProcessKey]]