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

[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-serv12950/src/org/tn5250j/keyboard/actions

Modified Files:
	EmulatorAction.java 
Log Message:
Update for SendEmail features

Index: EmulatorAction.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/keyboard/actions/EmulatorAction.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** EmulatorAction.java	11 Nov 2003 14:03:21 -0000	1.4
--- EmulatorAction.java	2 Dec 2003 13:14:47 -0000	1.5
***************
*** 32,35 ****
--- 32,36 ----
  import org.tn5250j.keyboard.KeyMapper;
  import org.tn5250j.Session;
+ import org.tn5250j.interfaces.OptionAccessFactory;
  
  /**
***************
*** 56,63 ****
     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);
        }
--- 57,64 ----
     protected void setKeyStroke(String action, KeyStroke ks, KeyMapper keyMap) {
  
+       if (OptionAccessFactory.getInstance().isRestrictedOption(action))
+          return;
+ 
        if (KeyMapper.isKeyStrokeDefined(action)) {
           ks = KeyMapper.getKeyStroke(action);
        }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
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.