[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Octave-bug-tracker] [bug #41337] Cannot retrieve command history fr
From: |
Michael C. Grant |
Subject: |
Re: [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard |
Date: |
Sat, 1 Mar 2014 14:32:55 +0000 |
My personal view is that the first priority should be to mimic standard or
de-facto default Mac behavior. (I would say the same for Windows, in fact.)
Second priority should be consistency across platforms.
*Roughly* speaking, swapping CTRL and CMD goes a long way towards achieving
Mac-friendly behavior.
> On Mar 1, 2014, at 8:10 AM, "Pantxo Diribarne" <address@hidden> wrote:
>
> 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/
>
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Pantxo Diribarne, 2014/03/01
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Pantxo Diribarne, 2014/03/01
- Re: [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard,
Michael C. Grant <=
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Pantxo Diribarne, 2014/03/01
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Pantxo Diribarne, 2014/03/01
- Re: [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Michael C. Grant, 2014/03/01
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, John W. Eaton, 2014/03/01
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Michael C. Grant, 2014/03/03
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Pantxo Diribarne, 2014/03/03
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Michael C. Grant, 2014/03/03
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Carlo de Falco, 2014/03/17
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Torsten, 2014/03/17
- [Octave-bug-tracker] [bug #41337] Cannot retrieve command history from keyboard, Pantxo Diribarne, 2014/03/17