summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-30 17:38:32 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-10-30 17:38:32 (GMT)
commit875438fdb503b0782c634ba620f375f809a490ef (patch)
tree5ac3a7f80681514dd43b5786fe37d44b89c4fe14
parent1fec1c453a87fe23b9cd5ab3f2cfcc68bd883637 (diff)
downloadeeshow-875438fdb503b0782c634ba620f375f809a490ef.zip
eeshow-875438fdb503b0782c634ba620f375f809a490ef.tar.gz
eeshow-875438fdb503b0782c634ba620f375f809a490ef.tar.bz2
gui/sheet.c (sheet_key), history.c (history_key): limit "v" to commit hover
I.e., we can use it for something else of not hovering over a commit. Also fixed a missing "break".
-rw-r--r--gui/history.c5
-rw-r--r--gui/sheet.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gui/history.c b/gui/history.c
index f2862df..178084d 100644
--- a/gui/history.c
+++ b/gui/history.c
@@ -486,8 +486,11 @@ static void history_key(void *user, int x, int y, int keyval)
break;
case GDK_KEY_q:
gtk_main_quit();
+ break;
case GDK_KEY_v:
- view_full_commit(gui);
+ if (gui->commit_hover)
+ view_full_commit(gui);
+ break;
}
}
diff --git a/gui/sheet.c b/gui/sheet.c
index 3e83dfe..8b66bf9 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -665,7 +665,8 @@ static void sheet_key(void *user, int x, int y, int keyval)
break;
case GDK_KEY_v:
- view_full_commit(gui);
+ if (gui->commit_hover)
+ view_full_commit(gui);
break;
case GDK_KEY_q: