-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable shortcuts #490
Comments
They are configurable by changing the the menu entry text of the Kind regards, Gunter. |
I edited directly |
It is always good to have a C++ programmer in the team! Kind regards, Gunter. |
I am sorry to disappoint you, but I am no C++ programmer. I just know enough of a lot of languages to do what I need. In the case of C++ I only know the C subset. I found this in StackOverflow. It might help. |
C++ isn't too compicated: C++ is now based on objects which basically means
There is much magic involved in finding out which functions now really have to be called when you try to use one that has been replaced several times - but that magic is part of the compiler and you won't see that it is there as long as it works right. Additional magic allows every object to have a constructor that can allocate memory or hardware on creation of the thing this class describes - and a destructor that automagically frees the resources and the memory as soon as your struct is no more needed. You'll never can forget to close a file manually: You just make sure that the object that holds all functions to write to a file is a local variable in a block or function - and as soon as you leave this block or function the local variable is no more needed and the file will be closed by the compiler. The other half is giving all things their complicated names:
One object that is important for our case is the parameter event of OnKeyDown function of the class MathCtrl: it contains functions like event.ShiftDown() that returns true if shift has been pressed, The other half of problem is still valid, though: Can we really send Ctrl+Shift+{ to the shortcut management code without breaking things for any of the hundreds of keyboard layouts that are to be found in the wild? Kind regards,
On Sa, Jun 6, 2015 at 2:04 , Marduk Bolaños notifications@github.com
|
Wow! Thank you so much for the detailed explanation. I will definitely
take a look at the source code and try to implement new features.
Anyway, I still think that shortcuts should be configurable because
there are cases like mine, where you want to use the English interface
with a Spanish keyboard.
|
Did do some research: In 2013 wxMaxima did allow Alt+Ctrl+any key as a shortcut and nobody except of me protested => Ctrl+Alt+{ and Ctrl+Alt+} are passed to the shortcut processing routines again. Seems like a good point, that with the user interface language. The convenient function of wxWidgets that it automatically adds all shortcuts mentioned in menu items makes configuring shortcuts a little bit harder - and I don't like the idea that every user whose keybord disagrees with the american one has to learn a new configuration language and to edit a file by hand => If anybody wrote this function I would propose:
Won't do this myself, though, since my keyboard is nearly american. |
Thank you! It's great that you outlined what has to be done. I would say do not close the issue and please add the labels |
Good idea. |
The shortcuts for folding and unfolding cells are convenient in an English keyboard, however, in a Spanish keyboard
[ = Shift + {
. Therefore, it would be more natural to typeCtrl-Alt-{
andCtrl-Alt-}
.For the above reasons, I suggest that the shortcuts be configurable in
.wxMaxima
or in the GUI.The text was updated successfully, but these errors were encountered: