Index: trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java	(revision 8440)
+++ trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java	(revision 8441)
@@ -132,4 +132,7 @@
             if (offsetDialog != null) {
                 offsetDialog.updateOffset();
+            }
+            if (Main.isDebugEnabled()) {
+                Main.debug(getClass().getName()+" consuming event "+kev);
             }
             kev.consume();
Index: trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java	(revision 8440)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java	(revision 8441)
@@ -647,4 +647,7 @@
         if (!Main.isDisplayingMapView() ||
                 !repeatedKeySwitchLassoOption || !getShortcut().isEvent(e)) return;
+        if (Main.isDebugEnabled()) {
+            Main.debug(getClass().getName()+" consuming event "+e);
+        }
         e.consume();
         if (!lassoMode) {
Index: trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java	(revision 8440)
+++ trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java	(revision 8441)
@@ -456,4 +456,7 @@
                 // and the result differs from its default value
                 result = ExtendedDialog.DialogClosedOtherwise;
+                if (Main.isDebugEnabled()) {
+                    Main.debug(getClass().getName()+" ESC action performed ("+actionEvent+") from "+new Exception().getStackTrace()[1]);
+                }
                 setVisible(false);
             }
@@ -482,4 +485,8 @@
         if (visible) {
             repaint();
+        }
+
+        if (Main.isDebugEnabled()) {
+            Main.debug(getClass().getName()+".setVisible("+visible+") from "+new Exception().getStackTrace()[1]);
         }
 
@@ -646,4 +653,7 @@
 
     class HelpAction extends AbstractAction {
+        /**
+         * Constructs a new {@code HelpAction}.
+         */
         public HelpAction() {
             putValue(SHORT_DESCRIPTION, tr("Show help information"));
Index: trunk/src/org/openstreetmap/josm/gui/MainMenu.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/MainMenu.java	(revision 8440)
+++ trunk/src/org/openstreetmap/josm/gui/MainMenu.java	(revision 8441)
@@ -966,4 +966,7 @@
                         Action menuAction = selectedItem.getAction();
                         menuAction.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null));
+                        if (Main.isDebugEnabled()) {
+                            Main.debug(getClass().getName()+" consuming event "+e);
+                        }
                         e.consume();
                     }
Index: trunk/src/org/openstreetmap/josm/gui/MenuScroller.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/MenuScroller.java	(revision 8440)
+++ trunk/src/org/openstreetmap/josm/gui/MenuScroller.java	(revision 8441)
@@ -507,4 +507,7 @@
             firstIndex += mwe.getWheelRotation();
             refreshMenu();
+            if (Main.isDebugEnabled()) {
+                Main.debug(getClass().getName()+" consuming event "+mwe);
+            }
             mwe.consume();
         }
Index: trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java	(revision 8440)
+++ trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java	(revision 8441)
@@ -46,5 +46,5 @@
      */
     class AutoCompletingComboBoxDocument extends PlainDocument {
-        private JosmComboBox<AutoCompletionListItem> comboBox;
+        private final JosmComboBox<AutoCompletionListItem> comboBox;
         private boolean selecting = false;
 
@@ -88,6 +88,5 @@
             // if the current offset isn't at the end of the document we don't autocomplete.
             // If a highlighted autocompleted suffix was present and we get here Swing has
-            // already removed it from the document. getLength() therefore doesn't include the
-            // autocompleted suffix.
+            // already removed it from the document. getLength() therefore doesn't include the autocompleted suffix.
             if (offs + str.length() < getLength()) {
                 return;
@@ -109,6 +108,5 @@
                     item = lookupItem(curText, true);
                 } catch (NumberFormatException e) {
-                    // either the new text or the current text isn't a number. We continue with
-                    // autocompletion
+                    // either the new text or the current text isn't a number. We continue with autocompletion
                     item = lookupItem(curText, false);
                 }
Index: trunk/src/org/openstreetmap/josm/gui/util/AdvancedKeyPressDetector.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/util/AdvancedKeyPressDetector.java	(revision 8440)
+++ trunk/src/org/openstreetmap/josm/gui/util/AdvancedKeyPressDetector.java	(revision 8441)
@@ -123,4 +123,7 @@
 
     private void processKeyEvent(KeyEvent e) {
+        if (Main.isDebugEnabled()) {
+            Main.debug("AdvancedKeyPressDetector enabled="+enabled+" => processKeyEvent("+e+") from "+new Exception().getStackTrace()[2]);
+        }
         if (e.getID() == KeyEvent.KEY_PRESSED) {
             if (timer.isRunning()) {
@@ -130,4 +133,7 @@
                     if (isFocusInMainWindow()) {
                         for (KeyPressReleaseListener q: keyListeners) {
+                            if (Main.isDebugEnabled()) {
+                                Main.debug(q+" => doKeyPressed("+e+")");
+                            }
                             q.doKeyPressed(e);
                         }
@@ -142,4 +148,7 @@
                         if (isFocusInMainWindow()) {
                             for (KeyPressReleaseListener q: keyListeners) {
+                                if (Main.isDebugEnabled()) {
+                                    Main.debug(q+" => doKeyReleased("+e+")");
+                                }
                                 q.doKeyReleased(e);
                             }
@@ -192,4 +201,7 @@
     public final void setEnabled(boolean enabled) {
         this.enabled = enabled;
+        if (Main.isDebugEnabled()) {
+            Main.debug("AdvancedKeyPressDetector enabled="+enabled+" from "+new Exception().getStackTrace()[1]);
+        }
     }
 
