org.xwiki.gwt.user.client
Class ShortcutKey
java.lang.Object
org.xwiki.gwt.user.client.ShortcutKey
public class ShortcutKey
- extends Object
Represents a combination of a keyboard key and one or more modifier keys, that could trigger a specific action.
- Version:
- $Id: 67a01944c09eec87b339b9e803f6a80b910b359e $
ShortcutKey
public ShortcutKey(int keyCode,
Set<ShortcutKey.ModifierKey> modifiers)
- Creates a new shortcut key.
- Parameters:
keyCode - specifies the key that must be pressed in order to activate the shortcutmodifiers - the modifier keys that have to be pressed in order to activate the shortcut
getKeyCode
public int getKeyCode()
- Returns:
keyCode
getModifiers
public Set<ShortcutKey.ModifierKey> getModifiers()
- Returns:
modifiers
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2004-2013 XWiki. All Rights Reserved.