View previous topic :: View next topic |
Author |
Message |
Pknair Beginner
Joined: 29 Nov 2005 Posts: 26 Topics: 9
|
Posted: Wed Oct 04, 2006 10:27 am Post subject: Is there any way to trap the Down key though ISPF |
|
|
Just like how you can trap the Function keys using .PFKEY is there any way to trap the Down, Up, PGDN and PGUP keys . Just out of curiosity.
Thanks in advance
Pknair |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Oct 04, 2006 12:18 pm Post subject: |
|
|
there is no down, up, pgdn or pgup key in ISPF. That is a function of your emulator which maps these keys to PF8 and PF7. You can redefine what ISPF does with those keys by typing KEYS on any command line (though it gets more complicated with keylists which potentially define a different set of meanings for each screen and KEYLIST ON happens to be the default).
The DOWN and UP commands are built in to ISPF but defined in something called a command table (type ISP in option 3.9 and you will see the command table. you can override the command table, but I would not touch the basic commands like UP and DOWN because that will usually affect every application.
Use of .pfkey is strongly discouraged. That is because users can change their PF key definitions so you do not want to rely on a particular physical key. You should be checking the value that the key places in the command line of your applicaiton and if you need your own commands assigned to keys, run your applicaiton in its own 'application id' wherein you can define your own default key mappings. |
|
Back to top |
|
|
|
|