BCC Ctrl+z broken?

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

BCC Ctrl+z broken?

Post 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.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: BCC Ctrl+z broken?

Post by HaWe »

for me, both ctrl+z and alt+backspace are working fine for undo.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: BCC Ctrl+z broken?

Post by mattallen37 »

Same test release of BCC? Did you try it multiple times?
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: BCC Ctrl+z broken?

Post 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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: BCC Ctrl+z broken?

Post by mattallen37 »

I realize the issue is actually with Ctrl+y (which should redo). If you hit Ctrl+y, it deletes the line.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: BCC Ctrl+z broken?

Post 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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: BCC Ctrl+z broken?

Post 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.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: BCC Ctrl+z broken?

Post 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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: BCC Ctrl+z broken?

Post by mattallen37 »

Okay, well that's fine since I now know how to modify hot keys in BCC :D
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests