SlickEdit Community

Archived Read Only Forums => SlickEdit 2018 v23 Beta Discussion => Topic started by: tim_k on October 10, 2018, 09:52:54 pm

Title: undo keyboard shortcut doesn't work with mini replace open
Post by: tim_k on October 10, 2018, 09:52:54 pm
With the mini replace dialog open, the keyboard shortcut for undo (presumably others, though I haven't tested) doesn't work. The menu selection via mouse does. This is not new to Beta6, but finally got annoying enough to report.

-Tim
Title: Re: undo keyboard shortcut doesn't work with mini replace open
Post by: Lee on October 11, 2018, 01:23:25 pm
Are you talking about the find and replace text fields in the Mini form or are you refering to editor buffer the mini find is docked?  Is it sporadic or all the time?  Not seeing anything in obviously wrong testing CUA on Windows or Linux builds.  Which emulation are you using?
Title: Re: undo keyboard shortcut doesn't work with mini replace open
Post by: tim_k on October 11, 2018, 02:11:41 pm
I'm referring to the editor buffer in which the mini find is docked. Say I'm stepping through replacing some instances, and not others and decide I changed one I shouldn't have, ^-Z (or command-Z on Mac) doesn't do anything. If i go to the edit menu and select undo, it has the intended behavior - undoes the last replace. I've tried it in CUA emulation on Mac & Linux, and Mac on Mac, all the same behavior.

If I click in the editor window, then ^-Z works, but then the mini find has lost focus, so I have to click back into it before I can continue with replacing things.

^-Z works in the mini find to undo typing, but once the first replace is done, it does nothing in either editor or mini find windows.

-Tim
Title: Re: undo keyboard shortcut doesn't work with mini replace open
Post by: Lee on October 11, 2018, 02:21:45 pm
I'll double-check this on Mac later, but I think this it really depends on where the focus really is.   If the focus is in the Mini-Find, then the undo binding isn't going to do anything unless it is specifically focused in on the find or replace text fields.  If you specifically switch focus to the editor control without dismissing the Mini-find I would expect it to just work.
Title: Re: undo keyboard shortcut doesn't work with mini replace open
Post by: tim_k on October 11, 2018, 04:26:06 pm
I guess undo is a reflex - when I see I've done something I didn't want to, I hit undo. It feels like this should work with the mini find open -  my last action was replace - I decided I didn't want that replace, so undo should undo the replace. Regardless of which window has focus, the action took place in the editor, so that's where the undo should happen. The way it is now where it does nothing, feels broken.

For me it behaves the same way on the Mac or Linux.

-Tim