Hi,
I’ve just installed the newest release jEdit 5.3.0 (on my home Mac and Windows at
work) and funny but annoying “bug” (?) appeared only on the Mac (10.11 El Capitan)
with the newest JDK 1.8.0_66…
When I press one of the split keyboard shortcuts it will apply twice – that means
if I press Split Vertically shortcut I will get one main and one more secondary vertical
split (1/2 + 1/4 + 1/4). The same after I press the Unsplit Current shortcut – two
splits will disappear. This makes the keyboard shortcuts unusable (on my Mac). The
good news is that split toolbar icons work…
(On Windows everything works fine. And that is a little bit suspicious… I hope there
exists a solution.)
Thank you for help…
Submitted | rhorvath - 2015-10-23 00:53:25.097000 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | |
Status | open | Group | minor bug |
Resolution | None |
2015-10-23 19:35:52.031000 makarius |
I don't see anything suspicious in this combination. Key event problems, especially
on Mac OS, have happened in the past -- usually it is either Apple or Oracle responsible
for it. Such things can be tested with the KeyEventDemo application on https://docs.oracle.com/javase/tutorial/uiswing/events/keylistener.html
|
---|---|
2015-10-24 05:36:38.266000 rhorvath |
Right now I have noticed that the problem is more common – more shortcuts behave like
this…
|
2015-10-24 11:59:14.365000 makarius |
I am myself not responsible for official jEdit bundling, but I have spent a lot of
time on bundling Isabelle/jEdit on all platform families: Linux, Windows, Mac OS X,
including many problems with keyboard varieties on these platforms. The Isabelle/jEdit
bundling eliminates most "variables", the user has no choice of JDK.
|
2015-10-26 19:26:29.866000 rhorvath |
Hi,
|
2015-10-26 20:04:18.105000 makarius |
I don't think there is a significant difference in the sources of current repository
version of jEdit (e.g. SVN 24115 from 2015-10-22) to the 5.3.0 release.
|
2015-10-26 20:04:49.167000 makarius |
Another question: What is your keyboard layout? |
2015-10-27 00:19:26.292000 rhorvath |
Hi, I ran all the commands.
|
2015-10-27 14:37:44.773000 makarius |
I've made some more experiments myself, and it turns out that the key reason is the
Slovak QWERTY keymap. I can confirm the problem with this keymap and the following
combinations:
|
2015-10-27 14:38:22.406000 makarius |
Meta question: Do you remember a combination of Java and jEdit versions where this worked properly? |
2015-10-27 19:40:28.132000 makarius |
After some more investigations here is a new summary of the situation:
|
2015-10-30 02:17:30.067000 rhorvath |
I see. It seems that the problem is going to be solved. Just find somebody who can
help. Do you know somebody or can you contact the team?
|
2015-10-30 10:47:48.378000 makarius |
Concerning unbundled versions that worked: I guess it was just due to different look-and-feel defaults, e.g. apple.laf.useScreenMenuBar. |
2015-10-30 15:08:25.621000 ezust |
This looks like a bug in the native Apple Look and Feel. I found it always troublesome
so when I am on the mac, I am still using Metal L&F and as a result, the behavior
is much closer to what i am accustomed to on other platforms. I suppose for the future,
we must remember to ask reporters of MacOS bugs which Look and Feel they are using.
|
2015-10-30 15:29:31.190000 makarius |
I agree that ultimately Oracle is responsible. In the past few years (of Java 7 on
Mac OS X) the situation has actually improved slightly. E.g. a similar menu key shortcut
conflict concerning C-ENTER has now disappeard, see http://isabelle.in.tum.de/repos/isabelle/rev/9c6346319eee
|
2015-10-30 17:42:18.386000 rhorvath |
I tried to create a mini-application that has text area (`JTextArea`) with keyboard
shortcuts defined through input map mechanism and menu items with the same “shortcuts”
definition that means with the same menu accelerators…
|
2015-10-30 17:48:12.590000 makarius |
Can you attach the source of that mini application, or put it somewhere on a public repository? |
2015-10-31 02:33:51.594000 rhorvath |
I am attaching it – the zip contains two files… TestDoubleKeystrokesOnMac.zip (4.5Kio) |
2016-03-27 17:25:46.053000 ezust |
Related ticket: https://sourceforge.net/p/jedit/bugs/3905/ |
2018-02-16 20:07:39.499000 ezust |
If you (any of you) think the Mac keyboard shortcuts should be changed, please submit a patch to the keymaps/Mac_OS_X_Keys.props file. |