summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
Diffstat (limited to 'ide-hover.c')
-rw-r--r--ide-hover.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ide-hover.c b/ide-hover.c
index aed5dbd..f99c2e7 100644
--- a/ide-hover.c
+++ b/ide-hover.c
@@ -78,10 +78,9 @@ void hover_frame(Ted *ted, double dt) {
return;
Hover *hover = &ted->hover;
- bool shift_down = SDL_GetKeyboardState(NULL)[SDL_SCANCODE_LSHIFT]
- || SDL_GetKeyboardState(NULL)[SDL_SCANCODE_RSHIFT];
+ bool f1_down = SDL_GetKeyboardState(NULL)[SDL_SCANCODE_F1];
- bool open_hover = shift_down || hover->time >= settings->hover_time;
+ bool open_hover = f1_down || hover->time >= settings->hover_time;
hover->time += dt;