summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-03-03 20:34:16 -0500
committerpommicket <pommicket@gmail.com>2023-03-03 20:35:44 -0500
commit1b383e6884d12d4098c4b6631e9c3e10cba0ffaf (patch)
treebfd88b9ffd8514b44f49e52d71cffd02e5d5c897 /ide-hover.c
parent2bd3bf463ec253ef7c12187b3beafc22599e41be (diff)
configurable hover/highlight key + better key stuff
scancodes are no longer used for anything
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;