boolean isCtrlAlt = (event.stateMask ^ SWT.ALT) == 0 || (event.stateMask ^ SWT.CTRL) == 0 || (event.stateMask ^ (SWT.ALT | SWT.SHIFT)) == 0 || (event.stateMask ^ (SWT.CTRL | SWT.SHIFT)) == 0;
boolean isCtrlAlt = false;  if (isCarbon == false) { isCtrlAlt = (event.stateMask ^ SWT.ALT) == 0 || (event.stateMask ^ SWT.CTRL) == 0 || (event.stateMask ^ (SWT.ALT | SWT.SHIFT)) == 0 || (event.stateMask ^ (SWT.CTRL | SWT.SHIFT)) == 0; }
void handleKey(Event event) {	int action;		if (event.keyCode != 0) {		action = getKeyBinding(event.keyCode | event.stateMask);	}	else {		action = getKeyBinding(event.character | event.stateMask);	}	if (action == SWT.NULL) {		// -ignore any ALT, SHIFT+ALT, CTRL, SHIFT+CTRL key combination; 		//  Don't ignore CTRL+ALT combinations since that is the Alt Gr 		//	key on some keyboards.		// -ignore anything below SPACE except for line delimiter keys and tab.		// -ignore DEL 		boolean isCtrlAlt = (event.stateMask ^ SWT.ALT) == 0 || 							(event.stateMask ^ SWT.CTRL) == 0 ||							(event.stateMask ^ (SWT.ALT | SWT.SHIFT)) == 0 ||							(event.stateMask ^ (SWT.CTRL | SWT.SHIFT)) == 0;		if (isCtrlAlt == false && event.character > 31 && event.character != SWT.DEL || 		    event.character == SWT.CR || event.character == SWT.LF || 		    event.character == TAB) {			doContent(event.character);		}	}	else {		invokeAction(action);			}}