- Undocumented Matlab - https://undocumentedmatlab.com -

R2009b keyboard bindings

Posted By Yair Altman On September 6, 2009 | No Comments

This weekend, Kenn Orr, Matlab’s desktop development team leader, announced an important and long-awaited feature that becomes available in the upcoming R2009b release: the ability to customize keyboard bindings in the system preferences [1].
This is indeed an important preference customization, which has often been requested. At first look, it appears that the desktop design team has done a good job of enabling easy keyboard shortcuts customization, saving and loading sets of shortcuts etc. – all in a new easy-to-use preference page.
This need has been addressed in the past by my EditorMacro utility [2], its expansions (here [3] and here [4]), and Perttu Ranta-aho’s KeyBindings [5] derivative utility.
Kudos for a job apparently well-done for the Matlab dev team aside, there may still be reasons for using EditorMacro and/or KeyBindings:

  • Earlier Matlab versions – those who have a Matlab release earlier than R2009b have no option but to use these utilities. The first version of EditorMacro even supported Matlab 6.0, now almost a decade old!
  • Programmatic access – some users may wish to have programmatic access to the keyboard bindings. For example, by saving sets of bindings in an m-file and accessing any of these sets via GUI or the desktop shortcuts toolbar. Note that in R2009b, these preferences can probably be accessed programmatically via the preferences interface, explained here [6].
  • Understanding the underlying workings of the Matlab desktop and editor, for those interested in exploring and using these undocumented subjects.

User-contributed utilities, especially those relying on undocumented features like EditorMacro and KeyBindings, will always pale next to sleek GUI preferences which are well-integrated by design. They have a place in niche usages, as explained above, but the hope is that all these needs will eventually be addressed by well-documented integrated features, exactly as happened in this particular case.

Categories: Desktop, High risk of breaking in future versions, Java

Article printed from Undocumented Matlab: https://undocumentedmatlab.com

URL to article: https://undocumentedmatlab.com/articles/r2009b-keyboard-bindings

URLs in this post:

[1] customize keyboard bindings in the system preferences: http://blogs.mathworks.com/desktop/2009/09/04/r2009b-is-here/

[2] EditorMacro utility: http://undocumentedmatlab.com/blog/EditorMacro

[3] here: http://undocumentedmatlab.com/blog/non-textual-editor-actions/

[4] here: http://undocumentedmatlab.com/blog/editormacro-v2-setting-command-window-key-bindings/

[5] KeyBindings: http://www.mathworks.com/matlabcentral/fileexchange/25089

[6] preferences interface, explained here: http://undocumentedmatlab.com/blog/changing-system-preferences-programmatically/

[7] EditorMacro v2 – setting Command Window key-bindings : https://undocumentedmatlab.com/articles/editormacro-v2-setting-command-window-key-bindings

[8] EditorMacro – assign a keyboard macro in the Matlab editor : https://undocumentedmatlab.com/articles/editormacro-assign-a-keyboard-macro-in-the-matlab-editor

[9] Non-textual editor actions : https://undocumentedmatlab.com/articles/non-textual-editor-actions

[10] Spicing up the Matlab Editor : https://undocumentedmatlab.com/articles/spicing-up-the-matlab-editor

[11] Programmatic shortcuts manipulation – part 2 : https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-2

[12] Accessing the Matlab Editor : https://undocumentedmatlab.com/articles/accessing-the-matlab-editor

Copyright © Yair Altman - Undocumented Matlab. All rights reserved.