tn5250j/src/org/tn5250j/keyboard/actions EmulatorAction.java,1.3,1.4

[email protected]
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/keyboard/actions
In directory sc8-pr-cvs1:/tmp/cvs-serv4641/src/org/tn5250j/keyboard/actions

Modified Files:
	EmulatorAction.java 
Log Message:
Fix for static related errors

Index: EmulatorAction.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/keyboard/actions/EmulatorAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** EmulatorAction.java	9 Jul 2003 18:55:39 -0000	1.3
--- EmulatorAction.java	11 Nov 2003 14:03:21 -0000	1.4
***************
*** 56,64 ****
     protected void setKeyStroke(String action, KeyStroke ks, KeyMapper keyMap) {
  
!       if (keyMap.isKeyStrokeDefined(action)) {
  //         ks = KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP,KeyEvent.ALT_MASK);
  //      }
  //      else {
!          ks = keyMap.getKeyStroke(action);
        }
  
--- 56,64 ----
     protected void setKeyStroke(String action, KeyStroke ks, KeyMapper keyMap) {
  
!       if (KeyMapper.isKeyStrokeDefined(action)) {
  //         ks = KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP,KeyEvent.ALT_MASK);
  //      }
  //      else {
!          ks = KeyMapper.getKeyStroke(action);
        }
  
***************
*** 67,72 ****
  
        // check for alternate
!       if (keyMap.isKeyStrokeDefined(action + ".alt2")) {
!          ks = keyMap.getKeyStroke(action + ".alt2");
           session.getInputMap().put(ks,action);
           session.getActionMap().put(action,this );
--- 67,72 ----
  
        // check for alternate
!       if (KeyMapper.isKeyStrokeDefined(action + ".alt2")) {
!          ks = KeyMapper.getKeyStroke(action + ".alt2");
           session.getInputMap().put(ks,action);
           session.getActionMap().put(action,this );




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.