It's not hard to make keys behave properly, it just needs to be understood what's proper.
In earlier versions the Java UI for J on Mac used Ctrl+ combinations, instead of Cmd+ ones, such as for Cmd+O for Open and Cmd+N for New. Then all Ctrl was replaced with Cmd, which took it too far. Not all such combinations make sense. For example, Ctrl+W in J is Run Window. But translated to Mac it's Cmd+W, Close Window--which is totally confusing. System combinations should not be overloaded. So for Mac we need both Ctrl+W for Run Window. So there's no simple solution. One approach is to move cross-platform combinations with Cmd, and keep J-specific and not cross-platform with Ctrl. It might be easier just open up the key mapping, leave to platform-specific config files. This assumes there's a way to distinguish Ctrl and Cmd. Let's discuss it on Wiki with keyboard layout proposals. Oleg On Sep 18, 2009, at 10:13 AM, Brian Schott <[email protected]> wrote: Oleg, I have found it confusing on my mac to see a close button on a window such as an opengl graphics window (is that more formally an isigraph window?) and need to key escape to close it, and not be able to key cmd+w. Keying cmd+w *does* work to close an ijs window; but I have not found cmd+w to work in other windows/dialogs, though. I think this is related to my comment about recommending the code `f_cancel=: f_close` because it seems to make the cancel button close a J application or window when such code is included. That has worked for me on the mac because the close keystroke does not work anywhere except for ijs windows. Are you suggesting that the J ui needs to be revised to make the escape key and the close (window) key separate and to make the close (window) key work even in dialog's, not just in ijs windows? I think that would be a good change, but I am not familiar with the windows ui. -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
