octave-maintainers
[Top][All Lists]
Advanced

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

Re: GUI keyboard shortcuts


From: Torsten
Subject: Re: GUI keyboard shortcuts
Date: Fri, 11 Oct 2013 09:39:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 11.10.2013 09:27, Thorsten Liebig wrote:
>> I never used QShortcuts. From a short view into the documentation I
>> can't see a big difference between changing the key sequences of
>> QShortcuts (which are connected to QActions) or directly changing the
>> key sequences for the QActions. The shortcut manager itself (suitable
>> user interface, changing shortcuts of all widgets without restart etc.)
>> seems to be more challenging to me.
> The difference seems to be that you can change the key sequence to the 
> QShortcut object at any time, e.g. by a configure dialog but you never again
> need to change the action it is assigned to...
> In short, you define an action and instead of given it a key-sequence 
> directly, you create a new QShortcut (the pointer to it you keep save) assign 
> a
> key-sequence to that and connect it to the action. Later on you can easily 
> change the key-sequence assigned to the QShortcut object.
> At least that is how understand it...

The key sequence of an action can be changed, too. That is used for
disabling key sequences of the editor when the editor loses focus in
order to avoid conflicts with readline.

>>>>>> "Open Selection":
>>>>>> Octave: does not have this
>>>>>> Matlab: CTRL+D
>>>>>> This is my favorite shortcut with Matlab especially if you work with
>>>>>> lots of functions (as I usually do). Put your cursor on the function and
>>>>>> press CTRL+D and the function opens as a new tab in the editor... Having
>>>>>> this in the context menu as well and calling "edit<function>" would be
>>>>>> nice. Drawback, if a command is running, this will not react...
>> I guess we don't need to call 'edit' but just open a new file in the
>> editor.
> Well the problem is that it depends on the current paths settings which file 
> to open....
> I thought that only the running octave instance knows which file it would 
> actually run if called...
> If there is an easy way to determine which file would be opened, that would 
> help to create a overlay/popup help window as well (see above)

You are right, a good point.

Torsten


reply via email to

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