Fixed: Ribbon stealing focus when pressing Alt (for example in editors)

This commit is contained in:
Jindra Petřík
2021-02-21 13:32:39 +01:00
parent 77f6e6b964
commit 4767effc34
3 changed files with 5 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ All notable changes to this project will be documented in this file.
- AS3 with statement decompilation
- #1610 AS3 unnecessary adding namespaces
- #1610 AS3 P-code editation - true/false/undefined/null has value_index same as value_kind
- Ribbon stealing focus when pressing Alt (for example in editors)
### Changed
- #1565, #1407, #1350 On BinaryData SWF save, parent SWF is saved

Binary file not shown.

View File

@@ -372,8 +372,9 @@ public class JRibbonFrame extends JFrame {
this.ribbon = new JRibbon(this);
this.add(this.ribbon, BorderLayout.NORTH);
// this.keyTipManager = new KeyTipManager(this);
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
// this.keyTipManager = new KeyTipManager(this);
//JPEXS: Disabled keytips as it constantly steals focus in my editors!
/*Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
private boolean prevAltModif = false;
@Override
@@ -451,7 +452,7 @@ public class JRibbonFrame extends JFrame {
}
}
}
}, AWTEvent.KEY_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK);
}, AWTEvent.KEY_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK);*/
final KeyTipLayer keyTipLayer = new KeyTipLayer();
JRootPane rootPane = this.getRootPane();