Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/KeyEventDumperImpl.java

Diff revisions: vs.
  @@ -6,24 +6,19 @@
6 6 import com.google.gwt.user.client.*;
7 7 import com.google.gwt.user.client.ui.*;
8 8
9 - public class KeyEventDumperImpl implements KeyEventDumper
10 - {
9 + public class KeyEventDumperImpl implements KeyEventDumper {
11 10 protected AbstractLogger mLogger;
12 11 protected boolean mSuppressModifiers;
13 12
14 - public KeyEventDumperImpl( AbstractLogger pLogger, boolean pSuppressModifiers )
15 - {
13 + public KeyEventDumperImpl( AbstractLogger pLogger, boolean pSuppressModifiers ) {
16 14 mLogger = pLogger.isEnabled() ? pLogger : null;
17 15 mSuppressModifiers = pSuppressModifiers;
18 16 }
19 17
20 18 @Override
21 - public void dump( Event pEvent )
22 - {
23 - if ( mLogger != null )
24 - {
25 - switch ( DOM.eventGetType( pEvent ) )
26 - {
19 + public void dump( Event pEvent ) {
20 + if ( mLogger != null ) {
21 + switch ( DOM.eventGetType( pEvent ) ) {
27 22 case Event.ONKEYDOWN:
28 23 dumpKeyEvent( "onKeyDown", pEvent, mSuppressModifiers );
29 24 break;
  @@ -37,14 +32,11 @@
37 32 }
38 33 }
39 34
40 - private void dumpKeyEvent( String pType, Event event, boolean pSuppressModifiers )
41 - {
35 + private void dumpKeyEvent( String pType, Event event, boolean pSuppressModifiers ) {
42 36 int zKeyCode = DOM.eventGetKeyCode( event );
43 - if ( pSuppressModifiers )
44 - {
37 + if ( pSuppressModifiers ) {
45 38 if ( (zKeyCode == KeyboardListener.KEY_CTRL) || (zKeyCode == KeyboardListener.KEY_ALT) || //
46 - (zKeyCode == KeyboardListener.KEY_SHIFT) )
47 - {
39 + (zKeyCode == KeyboardListener.KEY_SHIFT) ) {
48 40 return;
49 41 }
50 42 }