At 10:39 AM 6/3/2009, you wrote:
>From: "Pauli Lindgren"
>>
>> Key_Add("^X ^C","[MENU]FS",INSERT+OK)
>
>Further tests show that the above sequence does work if
>Config -> Misc -> Keyboard input options
>is changed from 17 (default) to 1.
>
>I was assuming that with the option 16, both ^C and C would work. But they only work if the key has been defined as "^X C").
Pauli:
I am glad you figured that out! This option was probably implemented in 1981 and it appears I have forgotten those details. (Shame on me.) ;-)
Here is the on-line help doco for that option:
------------------------------------------------------------
Keyboard input options (0 - 31) (Recommend: 1 or 17)
Mask 16
In a multi-character control sequence, convert 2nd and following Ctrl characters to equivalent letters. This is useful for the WordStar layout so that, for example, ^K ^V is equivalent to ^K V. This is enabled by default because it does not interfere with other layouts.
-------------------------------------------------------------
Therefore, with a Config value of 17 and a definition of:
Key_Add("^X C","[MENU]FS",INSERT+OK)
You can press ^X ^C or ^X C to save the current file.
I am glad that this old code still works!
Ted.
|
|