If a MenuBar set as systemMenuBar has a menuItem with an accelerator that uses as key combination Cmd+V, and the scene has a focused text input control, pressing Cmd+V pastes twice the content of the clipboard.
Originally posted at: https://github.com/javafxports/openjdk-jfx/issues/370, and added as a comment toJDK-8205915.
However, the current PR forJDK-8205915, https://github.com/openjdk/jfx/pull/715, doesn't fix it.
The issue has also been discussed inJDK-8242544. In fact, there was a closed PR https://github.com/openjdk/jfx/pull/704 that fixed it, by removing a duplicate call in performKeyEquivalent. However, the accepted fix https://git.openjdk.java.net/jfx/pull/714 does not fix it.
A proper fix should take into consideration that Cmd+V should be handled by the textField directly and the MenuItem should not fire at all.
Originally posted at: https://github.com/javafxports/openjdk-jfx/issues/370, and added as a comment to
However, the current PR for
The issue has also been discussed in
A proper fix should take into consideration that Cmd+V should be handled by the textField directly and the MenuItem should not fire at all.
- duplicates
-
JDK-8088897 Menu.onAction may not be called when TextInputControl node is focused
- Open