restrict drop down menu closing conditions

This commit is contained in:
GenevensiS
2025-07-02 00:27:26 +02:00
parent 2e839d673b
commit 276842be30
5 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ private:
if ( t == wxEVT_LEFT_DOWN || t == wxEVT_RIGHT_DOWN if ( t == wxEVT_LEFT_DOWN || t == wxEVT_RIGHT_DOWN
|| t == wxEVT_MOVE || t == wxEVT_MOVE
|| t == wxEVT_MENU_HIGHLIGHT || t == wxEVT_MENU_OPEN || t == wxEVT_MENU_OPEN || t == wxEVT_MENU_HIGHLIGHT || t == wxEVT_MENU_OPEN || t == wxEVT_MENU_OPEN
|| t == wxEVT_ACTIVATE || t == wxEVT_CLOSE_WINDOW || t == wxEVT_KILL_FOCUS || t == wxEVT_CLOSE_WINDOW || t == wxEVT_KILL_FOCUS
//|| t == wxEVT_ACTIVATE
|| t == wxEVT_COMMAND_TOOL_CLICKED) || t == wxEVT_COMMAND_TOOL_CLICKED)
{ {
// close the list, and pass on the event // close the list, and pass on the event
+1 -1
View File
@@ -293,7 +293,7 @@ bool ChoiceValueEditor::onChar(wxKeyEvent& ev) {
return drop_down->onCharInParent(ev); return drop_down->onCharInParent(ev);
} }
void ChoiceValueEditor::onLoseFocus() { void ChoiceValueEditor::onLoseFocus() {
drop_down->hide(false); //drop_down->hide(false);
} }
void ChoiceValueEditor::draw(RotatedDC& dc) { void ChoiceValueEditor::draw(RotatedDC& dc) {
+1 -1
View File
@@ -138,7 +138,7 @@ bool ColorValueEditor::onChar(wxKeyEvent& ev) {
return drop_down->onCharInParent(ev); return drop_down->onCharInParent(ev);
} }
void ColorValueEditor::onLoseFocus() { void ColorValueEditor::onLoseFocus() {
drop_down->hide(false); //drop_down->hide(false);
} }
void ColorValueEditor::draw(RotatedDC& dc) { void ColorValueEditor::draw(RotatedDC& dc) {
+1 -1
View File
@@ -135,7 +135,7 @@ bool MultipleChoiceValueEditor::onChar(wxKeyEvent& ev) {
} }
} }
void MultipleChoiceValueEditor::onLoseFocus() { void MultipleChoiceValueEditor::onLoseFocus() {
if (drop_down) drop_down->hide(false); //if (drop_down) drop_down->hide(false);
} }
void MultipleChoiceValueEditor::onValueChange() { void MultipleChoiceValueEditor::onValueChange() {
+1 -1
View File
@@ -95,7 +95,7 @@ bool PackageChoiceValueEditor::onChar(wxKeyEvent& ev) {
return drop_down->onCharInParent(ev); return drop_down->onCharInParent(ev);
} }
void PackageChoiceValueEditor::onLoseFocus() { void PackageChoiceValueEditor::onLoseFocus() {
if (drop_down) drop_down->hide(false); //if (drop_down) drop_down->hide(false);
} }
void PackageChoiceValueEditor::draw(RotatedDC& dc) { void PackageChoiceValueEditor::draw(RotatedDC& dc) {