summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
Diffstat (limited to 'ide-hover.c')
-rw-r--r--ide-hover.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ide-hover.c b/ide-hover.c
index b88a960..4c6c5f2 100644
--- a/ide-hover.c
+++ b/ide-hover.c
@@ -89,9 +89,9 @@ void hover_frame(Ted *ted, double dt) {
return;
Hover *hover = &ted->hover;
- bool f1_down = SDL_GetKeyboardState(NULL)[SDL_SCANCODE_F1];
+ bool key_down = ted_is_key_combo_down(ted, settings->hover_key);
- bool open_hover = f1_down || hover->time >= settings->hover_time;
+ bool open_hover = key_down || hover->time >= settings->hover_time;
hover->time += dt;