From 428a283f83e3c9c6e683062079cacbebf43ce3ab Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 9 Jun 2006 07:48:08 +0000 Subject: Added an event variable "Fl::event_original_key()" which returns the current key code (see Fl::event_key()) before it gets mangled through the NumLock keypad conversion. This way, an application can differentiate between an arrow key and a numeric keypad w/NumLock off. On Win32, releasing a numeric keypad key w/NumLock off wiould return the wrong keycode (keypad instead of arrow key). Documentation changed accordingly. X11 code is yet to be tested. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'documentation') diff --git a/documentation/Fl.html b/documentation/Fl.html index a66e3fe39..ac42de887 100644 --- a/documentation/Fl.html +++ b/documentation/Fl.html @@ -69,6 +69,7 @@ state information and global methods for the current application.

  • event_is_click
  • event_key
  • event_length
  • +
  • event_original_key
  • event_shift
  • event_state
  • event_text
  • @@ -660,6 +661,14 @@ will always be a nul at this position in the text. However there may be a nul before that if the keystroke translates to a nul character or you paste a nul character. +

    int event_original_key();

    + +

    If NumLock is deactivated, FLTK translates events from the +numeric keypad into the corresponding arrow key events. +event_key() returns the translated key code, whereas +event_original_key() returns the keycode before +NumLock translation. +

    int event_shift();

    Returns non-zero if the Shift key is pressed. -- cgit v1.2.3