Topic: Configuring multi key sequences (1 of 3), Read 10 times
Conf: Keyboard, keystroke macros
From: Pauli Lindgren
Date: Thursday, May 28, 2009 11:18 AM

I tried to configure a multi key sequence Ctrl-X Ctrl-C with the following command:

Key_Add("^X ^C","[MENU]FS", INSERT+OK)

After running the above command, the key assignment was displayed in the File menu.
However, typing the sequence on keyboard has no effect.

I removed the existing assignments for ^X and ^C, but that did not help.

However, the following sequence does work:

Key_Add("^X C","[MENU]FS", INSERT+OK)

Is that a bug?

--
Pauli

 


Topic: Configuring multi key sequences (2 of 3), Read 8 times
Conf: Keyboard, keystroke macros
From: Pauli Lindgren
Date: Wednesday, June 03, 2009 10:38 AM

On 5/28/2009 11:18:45 AM, Pauli Lindgren wrote:
> I tried to configure a multi
> key sequence Ctrl-X Ctrl-C
> with the following command:
>
> 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

 


Topic: Re: Configuring multi key sequences (3 of 3), Read 8 times
Conf: Keyboard, keystroke macros
From: Ted Green
Date: Wednesday, June 03, 2009 12:15 PM

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.