--- Joey K Tuttle <[EMAIL PROTECTED]> wrote:
> only Mac application (that I use) which uses <cntrl> at
> all for these things. The command (Apple/Splat) key is
> used instead of control. Modifiers for 3+key chords use
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));
Not all combinations should be cross-platform --
only system-wide like Copy, Paste, New, Open, etc.
Ctrl+W should stay Ctrl+W, because Command-W is
close window, which would be good to wire somehow too,
as an equivalent of Alt-F4.
> Even pasting one line, I have to make sure not to bring
> the EOL with it, or I have to copy it down to execute it.
This is common to any environment. In shell terminal
you end up with unintended execution.
> As I write this, I tried an experiment. I tried to copy
> some examples from an email authored by Roger. Because of
This could be done with a new action: Menu-Run-Clipboard (Display)
with a key like Ctrl/Cmd+Shift+V.
Alternatively, you open a new script window paste there
and execute line-by-line or the whole window.
__________________________________________________
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