--- Brian Schott <[EMAIL PROTECTED]> wrote: > First the good news: I have found the way to get > some of these Mac-centric keystroke shortcuts to work now. > The ones that work are cut/copy/paste and home and end and > commmand+` to rotate among windows and command+a to select > all. Command+w and command+n and command+o still do not > work. > > The key to accomplishing these features is to > Edit|Configure the category Java Settings to "Mac OS X > Aqua".
There different sets of keys, only some of which are affected by the Look and Feel selection: - OS controled keys: Cmd+` and Cmd+Q; they are unaffected by Look and Feel - Java controlled keys: Cmd+C, Cmd+V, Cmd+X; they are part of the underlying controls (TextEdit, etc.) and they change with Look and Feel correctly. - Application keys: all other. They may be Look and Feel or Host OS sensitive, if it's implemented in the application. Which currently not in J FE. > Now some not so good news: > > When use the mouse or command+a to select some text > in the ijx window, I cannot DEselect the text with a mouse > click anywhere. Instead I must use the right or left arrow > on the keyboard to DEselect it. That's wierd, I cannot reproduce. Maybe you could give more detailed steps. > It would be especially nice if under the > Edit|Configure the category Shortcuts, the Modify button > included some Command+... options in addition to the > Ctrl+... options. > > I have not figured out how to used Oleg's hint to > alter more keystrokes, though. I have not found "... the > keyboard mapper in Java action code ... " to which Oleg > refers. (Oleg can you say more about this, please?) In the WD Commands page http://www.jsoftware.com/books/help/user/wd_commands.htm there is a mention of the META key The sysmodifers value is: 2#.ALT,META,CTRL,SHIFT That's should be the Java equivalent of Command key. You can see it in action in the 'event' demo. Click on the ijigraph area to focus it (dismissing the popup), now press Cmd+O. You should see sysmodifiers=4, that's META. But it's not reflected under 'sysevent'. It says events_g_char, but it should say events_ometa_fkey. So wd output is not quite working. How about the wd input. Using http://www.jsoftware.com/jwiki/Scripts/WD_Spy we see that means by which the ShortCuts implemented is rewriting the menu definitions. Such as wd 'menu fileopen "&Open..." "Ctrl+O" "" "";' What it should also be able to accept is wd 'menu fileopen "&Open..." "Meta+O" "" "";' Then it needs to incorporated in Edit|Configure. But it also has to be sensitive of current OS, so that the same configuration would yield Ctrl on one OS and Meta on the other. To do this in J there should be Meta added to 'menu' command, and both Meta and something like Sys to Config code, which would translate to Ctrl or Meta depending on OS. Then the well-known commands will use Sys, and J-specific ones like Ctrl+W will use Ctrl directly. In Java this mechanism provided by the code below. > <begin Oleg's hint> > > This is addressed in the keyboard mapper in Java > action code that instead of Ctrl uses a cross-platform > modifier. Same for menu. > > int ACCL = > Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); > > menu.add(new AbstractAction("Reset") { > public void actionPerformed(ActionEvent e) { > ... > } > }).setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, > ACCL)); > > </end Oleg's hint> > > There does NOT appear any way to make command+w > close a window. Now you understand why. > I still cannot get the command+. nor esc to > interrupt a process, but that is not critical to most of my > work. Below is the way I tried to get an interrupt. After > each "delay 4" I would press various key combinations, to no > avail. Perhaps this is a result of the new interrupt > features mentioned in this release; perhaps not. > > > delay=: 6!:3 > delay 4 > 4 > delay 4 > 4 > delay 4 > 4 > > I am really pleased to have found a way to make some > of the command+... keystrokes work in the IDE. > > (B=) > > On Wed, 31 May 2006, Brian Schott wrote: > > + Eric, > + > + The Mac IDE editor uses control instead of command > + for all of cut/copy/paste and is very annoying in this way. > + Command+O for open and script file would be nice instead of > + control+O as would command+N instead of control+N for a new > + ijs window. Also the Home and End keys are ignored. Also > + there is no syntax coloring available. Also there is no > + close window key which should be command+W. Less of a > + problem is the lack of command+P for print. > + > + I gather that all IDE's require shift+arrow for > + moving between lines, but that is awkward, too. > + > + And I use vi mostly because I get little extra from > + J's IDE. > + > + (B=) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
