forked from External/mage
* UI: improved hotkeys:
* added support for characters keys (no more skip hits in chat or search windows while typing, #4676); * fixed that user can activate skip button in choose dialogs; * fixed that mouse clicks outside from chat fields can't reset the focus;
This commit is contained in:
parent
b5f92056ee
commit
1dbf5ba183
2 changed files with 50 additions and 0 deletions
|
|
@ -33,6 +33,18 @@ public class MageDialog extends javax.swing.JInternalFrame {
|
|||
|
||||
}
|
||||
|
||||
public static boolean isModalDialogActivated() {
|
||||
for (JInternalFrame frame : MageFrame.getDesktop().getAllFrames()) {
|
||||
if (frame instanceof MageDialog) {
|
||||
MageDialog md = (MageDialog) frame;
|
||||
if (md.isVisible() && md.isModal()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void printFramesOrder(String name) {
|
||||
///*
|
||||
JInternalFrame[] frames = MageFrame.getDesktop().getAllFrames();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue