Highlighted
Absent Member.
Absent Member.
1223 views

[archive] Tab and shift tab

[Migrated content. Thread originally posted on 07 December 2006]

Is there a way in the program to tell if a user pressed a tab or a shift tab.

We need to do different things depending on which one pressed.

We looked at the data item EVENT-CONTROL-ID but it doesn't seem to tell us anything.

What we are trying to do is on a transaction entry screen when the user gets to the amount field, which is the last field in the line, we have an after procedure routine setup to process the line and update the record.

We test for enter key and update if enter pressed but we also need to update if tab is pressed. Currently it goes to the next item in tab order.

Any suggestions would be greatly appreciated.
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Tab and shift tab

Try set environment "keystroke" to "exception=69 kB" and then you can trap the exception value when shift tab is used.

This will work on Windows but may not work in Unix as it turns out that a UNIX keyboard doesn't send a different escape sequence when the user presses TAB or SHIFT-TAB, so there is nothing that the runtime can do to detect the difference.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Tab and shift tab

Just wanted to see if anyone had any new thoughts or found anything new on handling this. We run a unix character screen for all of our GUI screens and are looking for a good way to handle shift-tab... ...especially in drop lists. Right now the best we have found is an option to "go to 'field'" listed as a selection in the drop list.

Thanks for any other input or thoughts. Mike
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Tab and shift tab

Just an fyi, we found that making a modificatio to the termcap file fixed our problems in Unix. We had to make the change for ever terminal type we used and now shift-tab works the same in unix as it does in windows.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.