-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] Cmd-Z/Y no longer works in inline color editor #4596
Comments
Works in Windows Sprint 30 RC1 |
I take it back, it doesn't work in Windows Sprint 30 RC1 |
Yes, this is the same general issue as the problem in #4315, #418, etc. (thanks to |
Assigning to |
Nominating for sprint 31. |
|
Reopen it since the issue is caused by our call of EditorManager.getFocusedEditor(). When the user clicks anywhere inside the inline color editor, calling EditorManager.getFocusedEditor will return null and therefore undo/redo is failing. |
So instead of calling EditorManager.getFocusedEditor() in handleUndoRedo(), which is failing for non-text inline editor, we need to call EditorManager.getActiveEditor() which can properly undo color change in main editor regardless of whether it is from a menu item click or a keyboard shortcut. |
See Raymond's PR #5033... |
We decided to re-close this bug and just deal with it when we get to the key event handling user story (https://trello.com/c/I07x1pO0). |
Wednesday Aug 28, 2013 at 23:30 GMT
Originally opened as adobe/brackets#4989
Result: Doesn't undo. I'm almost 100% positive this used to work. (The unit tests all pass, but they rely on synthesizing keyboard events.)
I haven't tried this on Win to see if it's failing there too.
Workaround: Click the color swatch for the original color, in the upper-right of the colorpicker, to revert to the original color.
The text was updated successfully, but these errors were encountered: