When editing Label components, default focus to the text editor

This commit is contained in:
Bane Stojkovic
2023-05-19 16:31:44 +02:00
parent 1417aaed0b
commit 7a4b77767d
2 changed files with 11 additions and 1 deletions
@@ -4377,7 +4377,11 @@
</versionNumber>
<releaseDate>2023-04-27 00:00:00.000 CET</releaseDate>
<name></name>
<changes>
<changes>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>When editing Label components, default focus to the text editor</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Unable to move selected components if one of them is close to being reduced to a point</description>
@@ -88,5 +88,11 @@ public class MultiLineStringEditor extends JScrollPane {
property.setChanged(true);
getTextArea().setBackground(oldBg);
property.setValue(getTextArea().getText());
}
@Override
public boolean requestFocusInWindow() {
getTextArea().selectAll();
return getTextArea().requestFocusInWindow();
}
}