From 16c2d4df99bd39e22be03bf5b07fc366600498ea Mon Sep 17 00:00:00 2001 From: Lethosor Date: Wed, 3 Dec 2014 17:52:42 -0500 Subject: [PATCH] stocks: Make LEAVESCREEN have priority over text entry This should fix conflicts if LEAVESCREEN is bound to "Space" only --- plugins/stocks.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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;