Change keyboard shortcut for terminate code while running in Mac OS Matlab 2020

1 view (last 30 days)
Hi, I am trying to change the shortcut for terminating code while running in Mac OS Matlab 2020
I look under Preferences -> MATLAB keyboard shortcut preferences but couldn't find the option to change it.
Currently I can do it using command+. or control+c, but I want to change it to command+c
Thanks,

Answers (1)

Jan
Jan on 11 Apr 2021
The shortcut for stopping the execution is controlled by the operating system. You cannot modify it from inside an application.
You can find software to modify the keyboard layout, but this influences all applications on your machine.
  1 Comment
Walter Roberson
Walter Roberson on 11 Apr 2021
In theory if you were starting from Terminal then you could use stty to modify which character generates SIGINT. It can be done for systems that support termios (I do not recall if it can be done for the older termio).
However, historically termios only supported narrow characters (0 to 255)... and the Command key is an additional key iirc, not a key modifier. But I would want to dig into the technical documents as it has been a very long time since I read about it.

Sign in to comment.

Categories

Find more on Desktop in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!