/[classpath]/classpath/javax/swing/text/DefaultEditorKit.java
ViewVC logotype

Diff of /classpath/javax/swing/text/DefaultEditorKit.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by rabbit78, Fri Apr 8 08:04:33 2005 UTC revision 1.15 by rabbit78, Wed Jun 8 10:00:04 2005 UTC
# Line 102  public class DefaultEditorKit extends Ed Line 102  public class DefaultEditorKit extends Ed
102    
103      public void actionPerformed(ActionEvent event)      public void actionPerformed(ActionEvent event)
104      {      {
105          // first we filter the following events:
106          // - control characters
107          // - key events with the ALT modifier (FIXME: filter that too!)
108          char c = event.getActionCommand().charAt(0);
109          if (Character.isISOControl(c))
110            return;
111    
112        JTextComponent t = getTextComponent(event);        JTextComponent t = getTextComponent(event);
113        if (t != null)        if (t != null)
114          {          {
# Line 129  public class DefaultEditorKit extends Ed Line 136  public class DefaultEditorKit extends Ed
136    
137      public void actionPerformed(ActionEvent event)      public void actionPerformed(ActionEvent event)
138      {      {
139          JTextComponent t = getTextComponent(event);
140          t.replaceSelection("\n");
141      }      }
142    }    }
143    

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26