FIX: enable resumed read only Field

Change-Id: Id09e671932458699c020f0a061d8cfc11a6958ab
Jira: STUDIO-6641
This commit is contained in:
chunmao.guo 2024-03-22 16:03:59 +08:00 committed by Lane.Wei
parent 5b834000f6
commit 708342effd
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,8 @@ void Field::PostInitialize()
if (getWindow()) {
if (m_opt.readonly) {
this->disable();
} else {
this->enable();
}
getWindow()->Bind(wxEVT_KEY_UP, [](wxKeyEvent& evt) {
if ((evt.GetModifiers() & wxMOD_CONTROL) != 0) {