summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-20 07:50:15 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-20 07:50:15 -0300
commit7129587854a9eecdf7733a76f02f4081d294c7b9 (patch)
tree1ff4bf4dde559e18b8366abb2caee753988ab74a /gui/sheet.c
parent474584719b53b45a904092626d9c9454cbaa8573 (diff)
downloadeeshow-7129587854a9eecdf7733a76f02f4081d294c7b9.tar.gz
eeshow-7129587854a9eecdf7733a76f02f4081d294c7b9.tar.bz2
eeshow-7129587854a9eecdf7733a76f02f4081d294c7b9.zip
eeshow/: Esc cancels current action
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index a0ba819..74bb5be 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -516,6 +516,12 @@ static void sheet_key(void *user, int x, int y, int keyval)
toggle_old_new(ctx);
break;
+ case GDK_KEY_Escape:
+ dehover_glabel(user);
+ ctx->glabel = NULL;
+ redraw(ctx);
+ break;
+
case GDK_KEY_n:
ctx->diff_mode = diff_new;
redraw(ctx);