diff options
author | Artur Signell <artur@vaadin.com> | 2012-11-08 13:35:28 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-11-08 13:35:28 +0000 |
commit | bd52209a82fe5a42cdc8aec3fba213ebbede22aa (patch) | |
tree | 32da63edc95aa6dee1fd245220310a79b64aa895 | |
parent | d2195c17642944f396e3a2e57b644c0d1d330435 (diff) | |
parent | 08dbd4739c27bc6ac1eb3e5d655fbcfd3a8dfdd7 (diff) | |
download | vaadin-framework-bd52209a82fe5a42cdc8aec3fba213ebbede22aa.tar.gz vaadin-framework-bd52209a82fe5a42cdc8aec3fba213ebbede22aa.zip |
Merge "Handle the situation where browser reports an unknown button on click event (#9956)"
-rw-r--r-- | client/src/com/vaadin/client/MouseEventDetailsBuilder.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/MouseEventDetailsBuilder.java b/client/src/com/vaadin/client/MouseEventDetailsBuilder.java index cda2eec07f..85acf5000a 100644 --- a/client/src/com/vaadin/client/MouseEventDetailsBuilder.java +++ b/client/src/com/vaadin/client/MouseEventDetailsBuilder.java @@ -65,6 +65,9 @@ public class MouseEventDetailsBuilder { mouseEventDetails.setButton(MouseButton.RIGHT); } else if (evt.getButton() == NativeEvent.BUTTON_MIDDLE) { mouseEventDetails.setButton(MouseButton.MIDDLE); + } else { + // IE8 does not always report a button. Assume left. + mouseEventDetails.setButton(MouseButton.LEFT); } mouseEventDetails.setAltKey(evt.getAltKey()); mouseEventDetails.setCtrlKey(evt.getCtrlKey()); |