mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Minor Set default text to the first hint if text field is empty and user is focused on other field
This commit is contained in:
+8
@@ -50,6 +50,14 @@ public class CCCreateAnswerPlaceholderPanel {
|
||||
myHintTextArea.setText("");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void focusLost(FocusEvent e) {
|
||||
if (myShownHintNumber == 0 && myHintTextArea.getText().isEmpty()) {
|
||||
myHintTextArea.setForeground(UIUtil.getInactiveTextColor());
|
||||
myHintTextArea.setText(ourFirstHintText);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
myPlaceholderTextArea.grabFocus();
|
||||
|
||||
Reference in New Issue
Block a user