robmcmullen/peppy — Issue #764: Undo keystroke calls Redo when no more undos available
Author: robmcmullen
Created: 2012-02-21 06:10:06+00:00
State: open
Labels: application

*[Trac time 20090902 235904Z]* When all changes have been undone (and the undo toolbar properly shows it being disabled), the undo keystroke causes the Redo action to be performed. Turning on keystroke debugging and pressing the undo character C-/ twice in succession:
```
multikey.py:1361 UserAccelerators.OnKeyDown: char=308, unichar=308, multiplier=1, id=238
multikey.py:1368 UserAccelerators.OnKeyDown: id=976 flag=0 key=CONTROL keycode=308
multikey.py:1572 UserAccelerators.OnMenu: id=323 event= >
multikey.py:1666 UserAccelerators.foundMenuAction: evt= id=323 index=1 repeat=1 FOUND MENU ACTION Redo id=0x2fa1a50 mode=<__builtin__.PythonMode; proxy of > frame=BufferFrame peppy: Window #1 id=0x2ccfed0
multikey.py:1319 UserAccelerators.doMenu: Calling action Redo id=0x2fa1a50 mode=<__builtin__.PythonMode; proxy of > frame=BufferFrame peppy: Window #1 id=0x2ccfed0
multikey.py:1733 UserAccelerators.reset: resetting status text to
multikey.py:1572 UserAccelerators.OnMenu: id=322 event= >
multikey.py:1666 UserAccelerators.foundMenuAction: evt= id=322 index=1 repeat=1 FOUND MENU ACTION Undo id=0x2fa1a10 mode=<__builtin__.PythonMode; proxy of > frame=BufferFrame peppy: Window #1 id=0x2ccfed0
multikey.py:1319 UserAccelerators.doMenu: Calling action Undo id=0x2fa1a10 mode=<__builtin__.PythonMode; proxy of > frame=BufferFrame peppy: Window #1 id=0x2ccfed0
multikey.py:1733 UserAccelerators.reset: resetting status text to
```