|
From: sfeam <sf...@us...> - 2014-11-18 16:35:13
|
On Tuesday, 18 November 2014 04:48:42 PM Jun T. wrote: > On Mac OS X, the arrow keys (Left, Right, Up, Down) do not work > on qt terminal. Are you sure this is not a property of your keyboard rather than a property of your operating system? What about keyboards that have both keypad arrows and separate arrow keys? > > The reason is simple; Apple considers the arrow keys as part of keypad. > The Qt::KeypadModifier bit of event->modifiers() is set when I hit > the arrow keys. > > Two possible patches are attached. > Only one of them (not both) should be applied. > > If mouse.c is patched, then a user should use > bind KP_Left ... > to customize the binding of the Left-arrow key. > If, on the other hand, QtGnuplotScene.cpp is patched, then > bind Left ... > can be used. Maybe this is more intuitive for typical Mac users? The QtGnuplotScene.cpp.diff patch appears to be backwards from what you describe above. If it detects __APPLE__ it removes the keypad modifier, rather than adding it. Could you please check and confirm which is correct, the patch or the description you gave above? thanks, Ethan |