- Add part of lack of selection events.
- To block unnecessary event that are delivered to the button.
Change-Id: Id875459e0f31d80de6f920f22be9897a4fac1ff2
Signed-off-by: HyunJong Park <paulhj.park@samsung.com>
(cherry picked from commit
9882a9074faca1a7acb78ea1dfb4eb1408679bc2)
*/
public void addSelectionListener(SelectionListener listener) {
addListener(SWT.Selection, new TypedListener(listener));
+ addListener(SWT.DefaultSelection, new TypedListener(listener));
}
public void removeSelectionListener(SelectionListener listener) {
removeListener(SWT.Selection, listener);
+ removeListener(SWT.DefaultSelection, listener);
}
@Override
} else {
eventEnterKeyTime = event.time;
}
+ if (event.widget instanceof StyledText) {
+ return;
+ }
event.doit = false;
parent.fireSelectionEvent();
}