summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: