diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-03-25 13:16:27 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-03-25 13:16:27 +0100 |
| commit | 6a807716a7f608109329cfe47b9e6fd9d26e6b45 (patch) | |
| tree | 8e05dc031641aac9939ad8ebaf183eb797661f16 /src/Fl_cocoa.mm | |
| parent | e8d7eb1e4619a16e196851dfb7f2f4f2cde59e8d (diff) | |
Rename fl_compute_macKeyLookUp() to Fl_Darwin_System_Driver::compute_macKeyLookUp()
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 2b2cf23fc..5d32dd1b3 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -74,7 +74,6 @@ extern "C" { // external functions extern void fl_fix_focus(); -extern unsigned short *fl_compute_macKeyLookUp(); extern int fl_send_system_handlers(void *e); // forward definition of functions in this file @@ -2117,7 +2116,7 @@ static void cocoaKeyboardHandler(NSEvent *theEvent) // printf("%08x %08x %08x\n", keyCode, mods, key); maskedKeyCode = keyCode & 0x7f; mods_to_e_state( mods ); // process modifier keys - if (!macKeyLookUp) macKeyLookUp = fl_compute_macKeyLookUp(); + if (!macKeyLookUp) macKeyLookUp = Fl_Darwin_System_Driver::compute_macKeyLookUp(); sym = macKeyLookUp[maskedKeyCode]; if (sym < 0xff00) { // a "simple" key // find the result of this key without modifier @@ -2492,7 +2491,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil; if ( tMods ) { unsigned short keycode = [theEvent keyCode]; - if (!macKeyLookUp) macKeyLookUp = fl_compute_macKeyLookUp(); + if (!macKeyLookUp) macKeyLookUp = Fl_Darwin_System_Driver::compute_macKeyLookUp(); Fl::e_keysym = Fl::e_original_keysym = macKeyLookUp[keycode & 0x7f]; if ( Fl::e_keysym ) sendEvent = ( prevMods<mods ) ? FL_KEYBOARD : FL_KEYUP; |
