Skip to content

Commit d1c121f

Browse files
committed
fixes #3649
1 parent 2583c7c commit d1c121f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/src/processing/app/syntax/JEditTextArea.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,8 +2429,10 @@ public void mousePressed(MouseEvent event) {
24292429
// if (focusedComponent != JEditTextArea.this) return;
24302430
if (!hasFocus()) {
24312431
// System.out.println("requesting focus in window");
2432-
requestFocusInWindow();
2433-
return;
2432+
// The following condition check fixes #3649 [manindra, 08/20/15]
2433+
if(!requestFocusInWindow()) {
2434+
return;
2435+
}
24342436
}
24352437

24362438
// isPopupTrigger() is handled differently across platforms,

0 commit comments

Comments
 (0)