Em 13/12/2009 07:03, Michael Rueger escreveu:
csrabak@bol.com.br wrote:
Well then be sure they're not 100% working. Also, we should get a way of having the shortcuts less dependent on platform (ex. the prefix key to what we need to find a way of referring to them in an homogeneous way like, say, Emacs). being a long time smalltalk user, how does Emacs do it?
Emacs coming from an old heritage and being multiplataform as well, 'standardized' the names Control and Meta, this last one normally maps to Alt key in PCs but it is called Meta in Workstations. There is no need to explicitly talk about Shift if you are only working with alphanumeric shortcuts, if we decide to employ the ten to twelve "function keys", then the Shift prefix has to come in play.
In Sophie we used I think shift, command, control to identify the modifier keys and mapped them in the platform classes to the platform specific bits. We also had a key dispatcher class with instances configured for the different views so that all the modifier etc handling was done in one place.
IIUC 'command' can be the name we use for the command key in Macs and Alt for PCs, we've only to create a nomenclature, stick to it and use it consitently in the program and documentation.
In PBE book a change was done towards a unified terminology for the mouse buttons. I know still there are some issues with that, but let's move on! What are the issues?
Certain operations which used to be available on the three button mice now only work if you prefix the button with a Ctrl, and this behaviour it is not consistent, so from times to times you've to do an heuristic search of the menu you want to appear... -- Cesar Rabak