mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-07 12:24:58 +10:00
Merge branch 'master' into feature/compare
This commit is contained in:
@@ -309,6 +309,10 @@
|
||||
<changeType>IMPROVEMENT</changeType>
|
||||
<description>Improved the styling of circuit analysis reports</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>X or Q keys sometimes do not register in secondary dialogs</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>If the internet connection is present, but unstable, the application starts but nothing can be clicked until the connection restores</description>
|
||||
|
||||
+3
-1
@@ -90,7 +90,9 @@ public class ExplorerPlugin implements IPlugIn {
|
||||
|
||||
@Override
|
||||
public boolean dispatchKeyEvent(KeyEvent e) {
|
||||
if (e.getKeyChar() == 'x' && e.getModifiersEx() == 0
|
||||
if (explorerPane != null
|
||||
&& (canvasPanel.hasFocus() || explorerPane.hasFocus())
|
||||
&& e.getKeyChar() == 'x' && e.getModifiersEx() == 0
|
||||
&& ConfigurationManager.getInstance()
|
||||
.readBoolean(ConfigPlugin.PROJECT_EXPLORER, true)) {
|
||||
explorerPane.getSearchField().requestFocusInWindow();
|
||||
|
||||
@@ -80,12 +80,13 @@ public class ComponentTree implements IPlugIn {
|
||||
|
||||
@Override
|
||||
public boolean dispatchKeyEvent(KeyEvent e) {
|
||||
if ((canvasPanel.hasFocus() || treePanel.hasFocus())
|
||||
&& e.getKeyChar() == 'q'
|
||||
if (treePanel != null
|
||||
&& (canvasPanel.hasFocus() || treePanel.hasFocus())
|
||||
&& e.getKeyChar() == 'q' && e.getModifiersEx() == 0
|
||||
&& ConfigurationManager.getInstance()
|
||||
.readString(ConfigPlugin.COMPONENT_BROWSER, ConfigPlugin.SEARCHABLE_TREE)
|
||||
.equals(ConfigPlugin.SEARCHABLE_TREE)) {
|
||||
getTreePanel().getSearchField().requestFocusInWindow();
|
||||
treePanel.getSearchField().requestFocusInWindow();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user