Post by Stefan on Nov 2, 2022 7:16:40 GMT -5
George,
So I really like and prefer the way it works. IF you consider this a bug, please do not fix the code, but amend the documentation and exploit it as a feature.
Options - KBD:
Reset INSERT mode on Attention is ticked.
Keymaps:
<INSERT> (DataInsert)
<Left-CTRL> (ResetInsert) <-- because it was the 3270-RESET button.
Pressing <INSERT> repeatably, toggles (DataInsert) on/off.
Pressing <ENTER> turns off (DataInsert) mode.
Pressing <Left-CTRL> turns off (DataInsert) mode.
BUT... there's an undocumented wrinkle, which I find really useful.
If you press (one immediately after another) <INSERT> <Left-CRTL> <INSERT> you get (Insert) instead of (DataInsert).
The interaction of (ResetInsert) and (DataInsert) primitives is not quite fully explained in the documentation.
I noticed a level of "unpredictability" with (DataInsert) here, but having diagnosed the effect, I think of it as a 'feature' rather than a bug.
My data entry mode is very much based around IBM 3270s.
Hence I work SPFLite in OVR mode instead of the perhaps more PC-oriented INS mode.
I also prefer (DataInsert) as my 'default' insert mode because it conveniently leaves my end-of-line comments where they are.
Not surprising then that my environment is set with:
Options - KBD:
Reset INSERT mode on Attention is ticked.
Keymaps:
<INSERT> (DataInsert)
<Left-CTRL> (ResetInsert) <-- because it was the 3270-RESET button.
Normal operation works exactly as documented, i.e.
Type some text and press <INSERT>. I get (DataInsert) ie. 'data-shift' mode, non-disruptive to columns.Pressing <INSERT> repeatably, toggles (DataInsert) on/off.
Pressing <ENTER> turns off (DataInsert) mode.
Pressing <Left-CTRL> turns off (DataInsert) mode.
All Good and predictable.
BUT... there's an undocumented wrinkle, which I find really useful.
If you press (one immediately after another) <INSERT> <Left-CRTL> <INSERT> you get (Insert) instead of (DataInsert).
This is great for those occasions when I want to shift column data. I just press <Left-CTRL> followed by <INSERT>
It is also very intuitive, because if I press <INSERT> and find I actually want the other sort, I habitually hit "3270-Reset" which is <Left_CTRL>