aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2018-10-25 13:59:29 +0100
committerAlastair Poole <netstar@gmail.com>2018-10-25 13:59:51 +0100
commit8b8ac6d51dea191251f87ccb43c138aac90f6170 (patch)
tree1a7de4feb39bf24a0526690f14a83181041d3687
parentmacos: use newer audio API for 10.11. (diff)
downloadevisum-8b8ac6d51dea191251f87ccb43c138aac90f6170.tar.gz
ui: Remove duplicate code.
-rw-r--r--src/ui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ui.c b/src/ui.c
index 9474772..037348e 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -2100,20 +2100,19 @@ _evisum_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
if (!ev || !ev->keyname)
return;
- if ((ev->keyname[0] == 'K' || ev->keyname[0] == 'k') && !ev->keyname[1])
+ ui->skip_wait = EINA_TRUE;
+
+ if ((ev->keyname[0] == 'K' || ev->keyname[0] == 'k') && !ev->keyname[1])
{
ui->data_unit = DATA_UNIT_KB;
- ui->skip_wait = EINA_TRUE;
}
else if ((ev->keyname[0] == 'M' || ev->keyname[0] == 'm') && !ev->keyname[1])
{
ui->data_unit = DATA_UNIT_MB;
- ui->skip_wait = EINA_TRUE;
}
else if ((ev->keyname[0] == 'G' || ev->keyname[0] == 'g') && !ev->keyname[1])
{
ui->data_unit = DATA_UNIT_GB;
- ui->skip_wait = EINA_TRUE;
}
else if (!strcmp(ev->keyname, "Escape"))
{