From: mekius Date: Wed, 11 Jul 2012 00:18:28 +0000 (+0000) Subject: Avoid jumping on keypress for non-character keys. X-Git-Tag: upstream/0.1~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd2dbeaf74ab53b1b6f189517e3730ca86a2f5cf;p=platform%2Fupstream%2Fterminology.git Avoid jumping on keypress for non-character keys. Without this fix, trying to use shift+page up/down to scroll is very cumbersome. Other similar key combinations may exist, but I'm not sure. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@73546 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/termio.c b/src/bin/termio.c index 8894c5e..91146d7 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -1074,7 +1074,7 @@ _smart_cb_key_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, } } } - if (sd->jump_on_keypress) + if (sd->jump_on_keypress && ev->string && (ev->string[0] != 0)) { sd->scroll = 0; _smart_update_queue(data, sd);