Skip to content

Commit

Permalink
Bug #499 - TableComboViewer dropdown not closed automatically
Browse files Browse the repository at this point in the history
TableComboViewer dropdown not closed automatically on mouse click on the
dialog area => this bug is side effect of a Linux-only bug
  • Loading branch information
lcaron committed Jan 25, 2024
1 parent 3b70c39 commit fd962d9
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 fd962d9

Please sign in to comment.