Page 1 of 1

BCC Ctrl+z broken?

Posted: 27 Aug 2012, 18:29
by mattallen37
In BCC, has Ctrl+z been broken? It will undo once, and then it starts deleting lines. I'm not really sure how to explain it, just try it to see what I mean. I'm using test release version 3.3.8.10 dated 08/10/12 00:10:08

The undo toolbar button seems fine.

Re: BCC Ctrl+z broken?

Posted: 27 Aug 2012, 21:37
by HaWe
for me, both ctrl+z and alt+backspace are working fine for undo.

Re: BCC Ctrl+z broken?

Posted: 27 Aug 2012, 22:02
by mattallen37
Same test release of BCC? Did you try it multiple times?

Re: BCC Ctrl+z broken?

Posted: 28 Aug 2012, 01:46
by afanofosc
There are editor options which affect the undo feature. You also can control how many levels of undo are recorded.

Max undo
With grouped undo

The "With grouped undo" option can cause the undo operation to "undo" more than a single character at a time. Perhaps you have that option selected? You may want to turn it off. My "Max undo" option is set to 1000. By default it is a much smaller number.

John Hansen

Re: BCC Ctrl+z broken?

Posted: 28 Aug 2012, 01:56
by mattallen37
I realize the issue is actually with Ctrl+y (which should redo). If you hit Ctrl+y, it deletes the line.

Re: BCC Ctrl+z broken?

Posted: 28 Aug 2012, 16:07
by afanofosc
BricxCC does not define Ctrl+Y as redo. The shortcut for redo is shown on the menu as Shift+Ctrl+Z.

Have a look at the Keystroke editor on the last tab in the Preferences dialog. You can change ecRedo to Ctrl+Y and remove the ecDeleteLine command if you like.

John Hansen

Re: BCC Ctrl+z broken?

Posted: 28 Aug 2012, 16:25
by mattallen37
Thanks.

Shouldn't Ctrl+Y be redo by default though? It's practically as universal in windows as Ctrl+C or Cont+Z.

Re: BCC Ctrl+z broken?

Posted: 28 Aug 2012, 21:00
by afanofosc
The standard for redo is either Ctrl+Y or Shift+Ctrl+Z.

http://en.wikipedia.org/wiki/Undo
The common command for Redo on Microsoft Windows systems is Ctrl+Y or Ctrl+Shift+Z. The common command for Redo on Apple Macintosh systems is Command-Shift-Z.
Mac OS X and Linux both prefer Ctrl(or Command)+Shift+Z for the redo operation as do all the Borland IDEs on Windows OSes. You are welcome to use Ctrl+Y if you prefer but BricxCC will continue to use Ctrl+Shift+Z as the default hot key for redo.

John Hansen

Re: BCC Ctrl+z broken?

Posted: 28 Aug 2012, 22:37
by mattallen37
Okay, well that's fine since I now know how to modify hot keys in BCC :D