Skip to content

Instantly share code, notes, and snippets.

@roberto-filho
Last active December 16, 2015 10:48
Show Gist options
  • Save roberto-filho/5422297 to your computer and use it in GitHub Desktop.
Save roberto-filho/5422297 to your computer and use it in GitHub Desktop.
Demonstrando o uso do *stateMask*
@Override
public void keyTraversed(TraverseEvent e) {
if(e.character == SWT.CR){
if(e.stateMask == SWT.SHIFT)
controle.traverse(SWT.TRAVERSE_TAB_PREVIOUS);
else
controle.traverse(SWT.TRAVERSE_TAB_NEXT);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment