Skip to content

Commit

Permalink
Merge pull request #558 from eclipse/bugfix/Issue_499_TableComboViewe…
Browse files Browse the repository at this point in the history
…r_dropdown_not_closed_automatically_on_mouse_click_on_the_dialog_area

Bug #499 - TableComboViewer dropdown not closed automatically
  • Loading branch information
lcaron authored Jan 25, 2024
2 parents 3b70c39 + fd962d9 commit 18d650e
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,11 @@ private void comboEvent(final Event event) {
if (focusControl == arrow || focusControl == table) {
return;
}
if (!isDropped()) {
if (isDropped()) {
if (isWindows()) {
table.setFocus();
}
} else {
text.setFocus();
}
break;
Expand All @@ -597,6 +601,10 @@ private void comboEvent(final Event event) {
}
}

private boolean isWindows() {
return System.getProperty("os.name").indexOf("indows") != -1;
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 18d650e

Please sign in to comment.