< prev index next >
modules/controls/src/main/java/javafx/scene/control/skin/MenuButtonSkinBase.java
Print this page
*** 23,32 ****
--- 23,33 ----
* questions.
*/
package javafx.scene.control.skin;
+ import com.sun.javafx.scene.NodeHelper;
import com.sun.javafx.scene.control.ContextMenuContent;
import com.sun.javafx.scene.control.ControlAcceleratorSupport;
import com.sun.javafx.scene.control.LabeledImpl;
import com.sun.javafx.scene.control.skin.Utils;
import javafx.application.Platform;
*** 184,194 ****
// Make sure button is in sync.
getSkinnable().hide();
}
if (popup.isShowing()) {
! Utils.addMnemonics(popup, getSkinnable().getScene(), getSkinnable().impl_isShowMnemonics());
} else {
// we wrap this in a runLater so that mnemonics are not removed
// before all key events are fired (because KEY_PRESSED might have
// been used to hide the menu, but KEY_TYPED and KEY_RELEASED
// events are still to be fired, and shouldn't miss out on going
--- 185,195 ----
// Make sure button is in sync.
getSkinnable().hide();
}
if (popup.isShowing()) {
! Utils.addMnemonics(popup, getSkinnable().getScene(), NodeHelper.isShowMnemonics(getSkinnable()));
} else {
// we wrap this in a runLater so that mnemonics are not removed
// before all key events are fired (because KEY_PRESSED might have
// been used to hide the menu, but KEY_TYPED and KEY_RELEASED
// events are still to be fired, and shouldn't miss out on going
< prev index next >