diff options
author | Juho Nurminen <juho@vaadin.com> | 2013-09-23 13:17:41 +0300 |
---|---|---|
committer | Juho Nurminen <juho@vaadin.com> | 2013-10-01 11:22:23 +0300 |
commit | 478acb8e9aa7505cc6eacf219e87202191810a39 (patch) | |
tree | 132281f0011f52da98d8414bcbe1a436d878be40 /client | |
parent | b235d9c4e166197f3369694feec8d8f12a93c49d (diff) | |
download | vaadin-framework-478acb8e9aa7505cc6eacf219e87202191810a39.tar.gz vaadin-framework-478acb8e9aa7505cc6eacf219e87202191810a39.zip |
Check modifiers when handling TabSheet hot keys. Fixes #12178
Change-Id: I685dbf2c22e3b160632b811652bf3ab52d3ef6dc
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VTabsheet.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/client/src/com/vaadin/client/ui/VTabsheet.java b/client/src/com/vaadin/client/ui/VTabsheet.java index fe29e2ebc0..7dec62bde0 100644 --- a/client/src/com/vaadin/client/ui/VTabsheet.java +++ b/client/src/com/vaadin/client/ui/VTabsheet.java @@ -1115,14 +1115,16 @@ public class VTabsheet extends VTabsheetBase implements Focusable, if (event.getSource() instanceof Tab) { int keycode = event.getNativeEvent().getKeyCode(); - if (keycode == getPreviousTabKey()) { - selectPreviousTab(); - } else if (keycode == getNextTabKey()) { - selectNextTab(); - } else if (keycode == getCloseTabKey()) { - Tab tab = tb.getTab(activeTabIndex); - if (tab.isClosable()) { - tab.onClose(); + if (!event.isAnyModifierKeyDown()) { + if (keycode == getPreviousTabKey()) { + selectPreviousTab(); + } else if (keycode == getNextTabKey()) { + selectNextTab(); + } else if (keycode == getCloseTabKey()) { + Tab tab = tb.getTab(activeTabIndex); + if (tab.isClosable()) { + tab.onClose(); + } } } } |