]> source.dussan.org Git - vaadin-framework.git/commit
Prevent browser to scroll when space it pressed on a TabSheet (#14320)
authorBogdan Udrescu <bogdan@vaadin.com>
Mon, 11 Aug 2014 10:08:39 +0000 (13:08 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 14 Aug 2014 06:33:55 +0000 (06:33 +0000)
commit52b98ccd173682355af9396ce216ce5a98993194
treedba17d0cb8c60c39a11c9c7d3b48d57859d083f3
parentc5c6a78787dd1d86c511b50361efc9acedee6684
Prevent browser to scroll when space it pressed on a TabSheet (#14320)

Browser page scroll by default when space key is pressed.
The TabSheet uses the space key (32) to select the tab
when navigating using left/right keys. So when the space
is pressed the default browser page scroll behavior is
now prevented.

Change-Id: I8c3c7c4904109018d2f91447235e30dbd29eec5d
client/src/com/vaadin/client/ui/VTabsheet.java
uitest/src/com/vaadin/tests/components/tabsheet/TabSpaceNotScroll.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/components/tabsheet/TabSpaceNotScrollTest.java [new file with mode: 0644]