--- old/apps/scenebuilder/SceneBuilderApp/src/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java 2015-09-03 14:43:27.260213100 -0700 +++ new/apps/scenebuilder/SceneBuilderApp/src/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java 2015-09-03 14:43:26.703181300 -0700 @@ -70,7 +70,6 @@ import com.oracle.javafx.scenebuilder.kit.fxom.FXOMObject; import com.oracle.javafx.scenebuilder.kit.library.Library; import com.oracle.javafx.scenebuilder.kit.library.user.UserLibrary; -import com.sun.javafx.scene.control.behavior.KeyBinding; import java.io.File; import java.io.IOException; @@ -237,7 +236,7 @@ private static List videoExtensions; private static List mediaExtensions; - private final EventHandler mainKeyEventFilter = event -> { + private final EventHandler mainKeyEventFilter = (KeyEvent event) -> { //------------------------------------------------------------------ // TEXT INPUT CONTROL //------------------------------------------------------------------ @@ -258,19 +257,20 @@ final KeyCombination accelerator = getAccelerator(event); if (isTextInputControlEditing(focusOwner) == true && accelerator != null) { - for (KeyBinding binding : SBTextInputControlBindings.getBindings()) { - // The event is handled natively - if (binding.getSpecificity(null, event) > 0) { - // - // When using system menu bar, the event is handled natively - // before the application receives it : we just consume the event - // so the editing action is not performed a second time by the app. - if (menuBarController.getMenuBar().isUseSystemMenuBar()) { - event.consume(); - } - break; - } - } + +// focusOwner.getInputMap() +// .lookupMapping(KeyBinding.toKeyBinding(event)) +// .ifPresent(mapping -> { +// // The event is handled natively +// if (mapping.getSpecificity(event) > 0) { +// // When using system menu bar, the event is handled natively +// // before the application receives it : we just consume the event +// // so the editing action is not performed a second time by the app. +// if (menuBarController.getMenuBar().isUseSystemMenuBar()) { +// event.consume(); +// } +// } +// }); } //------------------------------------------------------------------ @@ -2155,17 +2155,17 @@ } } -/** - * This class setup key bindings for the TextInputControl type classes and - * provide a way to access the key binding list. - */ -class SBTextInputControlBindings extends com.sun.javafx.scene.control.behavior.TextInputControlBindings { - - private SBTextInputControlBindings() { - assert false; - } - - public static List getBindings() { - return BINDINGS; - } -} +///** +// * This class setup key bindings for the TextInputControl type classes and +// * provide a way to access the key binding list. +// */ +//class SBTextInputControlBindings extends TextInputControlBindings { +// +// private SBTextInputControlBindings() { +// assert false; +// } +// +// public static List getBindings() { +// return BINDINGS; +// } +//}