Standard Edit Actions are not properly updated
Original Reporter info from Mantis: Vladimir
-
Reporter name: Vladimir Zhirov
Original Reporter info from Mantis: Vladimir
- Reporter name: Vladimir Zhirov
Description:
Test application attached. Steps to reproduce:
- Compile and run test application.
- Do not touch the main menu.
- Try to use Ctrl+X/Ctrl+C/Ctrl+V in Edit and Memo.
Everything works just fine
- Ensure active control (Edit/Memo) does not have text selection, just blinking caret
- Open main menu. Since no selection available in the active control, Cut, Copy and Delete actions become disabled.
- Close the menu and repeat (3)
Wrong behavior: Ctrl+X/Ctrl+C/Ctrl+V does not work anymore in Edit/Memo
- Ensure active Edit/Memo has text selection
- Open main menu once more. Cut, Copy and Delete actions become enabled.
- Close the menu and repeat (3)
Everything works as expected again.
It seems edit actions with their corresponding hotkeys are updated not when active control selection changes, but when the menu opens. So once you opened menu with no text selection, hotkeys become broken until you select some text and open the menu once again.
Additional information:
Tested on Win32 with r23265
Mantis conversion info:
- Mantis ID: 15427
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 23311 (#a35c06ee)
- Target version: 0.9.30