bugGNU Octave - Bugs: bug #44204, Ctrl+C won't interrupt running...

 
 

bug #44204: Ctrl+C won't interrupt running scripts if Copy shortcut has been changed

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Sat 07 Feb 2015 05:18:51 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  ttl
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 12 Feb 2015 09:04:55 PM UTC, comment #7: 

No action with a shortcut of the form "Alt+..." seems to work in the terminal; no problem in other dock widgets. So I don't think it is related to my patch. Could you file another bug report, please?

Torsten Lilge <ttl>
Group Member
Wed 11 Feb 2015 07:27:50 PM UTC, comment #6: 

Thanks Torsten for the fix.

I noticed that in the terminal, setting "Ctrl+..." shortcuts for Copy action works, while with "Alt+..." selected texts are not copied. I tried with and without the "Disable global shortcut ... " option.
Is it related to your last patch or should I file another bug report

Pantxo Diribarne <pantxo>
Group Member
Tue 10 Feb 2015 07:14:25 PM UTC, comment #5: 
Torsten Lilge <ttl>
Group Member
Sun 08 Feb 2015 08:33:20 PM UTC, comment #4: 

Thanks for the tip. The current version of the patch actually uses Qt::MetaModifier.

Torsten Lilge <ttl>
Group Member
Sun 08 Feb 2015 08:19:02 PM UTC, comment #3: 

Thanks Torsten for taking care of this.
If I may, on Mac the interrupt action should be binded to "Qt::ControlModifier + C", not using the placeholder "ctrl" that points to Qt::MetaModifier.

Pantxo Diribarne <pantxo>
Group Member
Sun 08 Feb 2015 08:00:05 PM UTC, comment #2: 

I am preparing a patch, which adds an extra action for interrupting with fixed shortcut Ctrl-C to the terminal. In the case that Ctrl-C (the default) is used for the copy-action, this new action is disabled and the interrupt is handled by the copy routine.

IMHO, we can not handle the duplicate use Ctrl-C in other actions than copy. This implies that selecting the shortcut Ctrl-C to other actions than copy have to be prevented by the shortcut manager.

Torsten Lilge <ttl>
Group Member
Sat 07 Feb 2015 07:22:34 PM UTC, comment #1: 

Confirmed here. The way this is handled is the terminal widget decides whether to interpret the "copy clipboard" action as a copy to clipboard or to send an interrupt signal to the Octave interpreter. Qt handles the platform differences between what the default key sequence for the "copy clipboard" action should be.

Mike Miller <mtmiller>
Group Member
Sat 07 Feb 2015 05:18:51 PM UTC, original submission:  

Hi,

Steps to reproduce: open the preference dialog, change the Main/Edit/Copy shortcut to something else than Ctrl+C, apply, in the command window you cannot interrupt anymore e.g.


pause (20)


A workaround is to leave the main Main/Edit/Copy shortcut unchanged in at least one of the available sets of shortcuts and switch back and forth.

I don't know what will happen on mac platform for which the default shortcut for Copy is not Ctrl+C but CMD(META)+C. 


Pantxo Diribarne <pantxo>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by pantxo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-10 ttl StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-02-08 ttl Assigned toNone ttl
    2015-02-07 mtmiller StatusNone Confirmed
    2015-02-07 pantxo SummaryCtrl+C won\'t interrupt running scipts if copy shortcut has been changed Ctrl+C won't interrupt running scripts if Copy shortcut has been changed

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code