octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41337] Cannot retrieve command history from k


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard
Date: Sat, 01 Mar 2014 14:10:47 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0

Follow-up Comment #15, bug #41337 (project octave):

Now about CTRL key. A solution could be to avoid Qt default behavior which is
swapping CTRL and META(CMD). 
I made a trial, adding the following at the beginning  of
main_window::construct_menu_bar (void) (this is probably not the right
place):


{
  QMenuBar *menu_bar = menuBar ();
  
  QCoreApplication::setAttribute (Qt::AA_MacDontSwapCtrlAndMeta, true);
...


Using this trick I can use ctrl modifier as in mac terminal, but hard coded
shortcuts (like CMD+Z, CMD+C ...) don't work anymore as expected.

Replacing all instances of Qt::ControlModifier by a custom
OctaveControlModifier (which would default to Qt::ControlModifier for all
platforms and Qt::MetaModifier for mac) should do the rest of the job.

Do you think it's a viable approach or should we avoid such platform specific
tricks?


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41337>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]