Ignore:
Timestamp:
01/30/12 14:07:12 (13 years ago)
Author:
sherbold
Message:
  • JFCMonitor monitors KEY_PRESSED and KEY_RELEASED instead of KEY_TYPED events, because of various drawbacks of key typed (does not receive all inputs, like pressing enter and the events only offer the actual char pressed, not its virtual code, which leads to all kinds of problems, e.g., in case of backspace)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/Runner.java

    r370 r371  
    7878                                Toolkit.getDefaultToolkit().addAWTEventListener(listenerStdOut, 
    7979                                                AWTEvent.MOUSE_EVENT_MASK); 
     80                                Toolkit.getDefaultToolkit().addAWTEventListener(listenerStdOut, 
     81                                                FocusEvent.FOCUS_EVENT_MASK); 
    8082                        } catch (UnsupportedEncodingException e) { 
    8183                                System.err 
Note: See TracChangeset for help on using the changeset viewer.