Topic: Disabling the Enter Key (1 of 3), Read 9 times
Conf: VEDIT Macro Language Support
From: David Cohen
Date: Tuesday, September 30, 2008 09:46 PM

Can the enter key be either disabled or re-assigned when macro switches focus from command window to visual mode on a file which is not to be altered. User selects a line when in visual mode and performs visual exit to return to command mode. Problem is we are very used to hitting the enter key to select things so it makes for an easy mistake.
Dave Cohen

 


Topic: Re: Disabling the Enter Key (2 of 3), Read 10 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Tuesday, September 30, 2008 11:15 PM

At 09:49 PM 9/30/2008, you wrote:
>From: "David Cohen"
>
>Can the enter key be either disabled or re-assigned when macro switches
focus from command window to visual mode on a file which is not to be
altered. User selects a line when in visual mode and performs visual exit
to return to command mode. Problem is we are very used to hitting the enter
key to select things so it makes for an easy mistake.

You can reconfigure the Enter key:

key emulation mode (0 - 3) (Default: 1)

Controls how the key ([RETURN] function) operates.

0 always inserts a "newline" at the cursor position.

1 only inserts a "newline" in "Insert" mode; in "Overstrike"
mode it is equivalent to [NEXT LINE] — it only moves the cursor to the
beginning of the next line.

2 is always equivalent to [NEXT LINE].

3 inserts a "newline" following the current line (it opens a
new line).

------------

You could use the file-specific configuration to have a special Enter key
emulation modes for specific files.

Of course, it is better to open such files in Browse-only mode so that
nothing alters it.

Ted.

 


Topic: Re: Disabling the Enter Key (3 of 3), Read 7 times
Conf: VEDIT Macro Language Support
From: David Cohen
Date: Thursday, October 02, 2008 12:55 PM

I've tried setting read only attribute, open as file read and setting configuration to overwrite mode.
If the file is open for read only, the warning when hitting the enter key messes up the macro.

If I use the config setting, the initial warning messes up the macro. Can any of these message be suppressed.
Dave