diff --git a/plugins/stocks.cpp b/plugins/stocks.cpp index 459f59d6c..c5fbed4d5 100644 --- a/plugins/stocks.cpp +++ b/plugins/stocks.cpp @@ -655,6 +655,13 @@ public: void feed(set *input) { + if (input->count(interface_key::LEAVESCREEN)) + { + input->clear(); + Screen::dismiss(this); + return; + } + bool key_processed = false; switch (selected_column) { @@ -666,13 +673,6 @@ public: if (key_processed) return; - if (input->count(interface_key::LEAVESCREEN)) - { - input->clear(); - Screen::dismiss(this); - return; - } - if (input->count(interface_key::CUSTOM_CTRL_J)) { hide_flags.bits.in_job = !hide_flags.bits.in_job;