mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fixes of transient popup dialogs, still not perfect, but getting there:
* fixed: popup didn't work when editor didn't have focus * fixed: dimissal by losing focus didn't repaint dropdown arrows git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1572 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -213,6 +213,7 @@ void DataEditor::insert(const String& text, const String& action_name) {
|
||||
|
||||
void DataEditor::onLeftDown(wxMouseEvent& ev) {
|
||||
ev.Skip(); // for focus
|
||||
SetFocus(); // set focus now, otherwise this happens after the editor handles the event, which dismisses transient popup dialogs
|
||||
CaptureMouse();
|
||||
// change selection?
|
||||
selectField(ev, &ValueEditor::onLeftDown);
|
||||
|
||||
Reference in New Issue
Block a user