不幸的是,Brian 的发现不能很好地使用 QWERTZ 键盘:它无法输入管道、花括号或任何使用 ALT 键作为修饰符的字符。
根据startup.bsh中的cmets:
/*{{{ Remapping modifier keys part II */
/* Note if you chose to make use of the M+ (option key) prefix on MacOS, you
* will need to disable a little piece of code: */
//Debug.ALT_KEY_PRESSED_DISABLED = false;
/* Otherwise M+ will be ignored for the purposes of keyboard shortcuts. */
/* But if you enable this, you might find that Option+8 for example invokes your
* macro but also inserts a bulletpoint, as per standard Macintosh keyboard
* behavior. To disable the Option key for inserting special high ASCII
* characters, uncomment this. Note that it has wider implications, notably
* DROVAK keyboard shortcuts will be mapped as if the keyboard was QWERTY. */
//Debug.ALTERNATIVE_DISPATCHER = false;
/*}}}*/
只有取消注释 Debug.ALT_KEY_PRESSED_DISABLED 才能解决问题,但在这里[1] 不行 - 我可以要么使用 ALT 作为快捷键的修饰符,或用于输入字符的修饰符.. 前面的部分还涉及修饰符的映射:
/*{{{ Remapping modifier keys part I */
/* The below is the default, swap the items around to
* change meaning of C+, A+, M+, S+.
*/
//KeyEventTranslator.setModifierMapping(InputEvent.CTRL_MASK,
// InputEvent.ALT_MASK, InputEvent.META_MASK,
// InputEvent.SHIFT_MASK);
/* ... and this the MacOS default: */
//KeyEventTranslator.setModifierMapping(InputEvent.META_MASK, /* == C+ */
// InputEvent.CTRL_MASK, /* == A+ */
// InputEvent.ALT_MASK, /* == M+ */
// InputEvent.SHIFT_MASK /* == S+ */);
/*}}}*/
但无论我尝试了何种设置组合,我都无法在两个选项(ALT 作为快捷键和文本输入的修饰符)工作的情况下实现设置。
所以:任何提示/修复将不胜感激。 ;-)
[1] 这里的意思是:jEdit 4.3.2 @ OSX 10.5.8 (Java 1.5.0_30) 和 QWERTZ(德语)键盘