summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-03 12:40:24 -0500
committerpommicket <pommicket@gmail.com>2023-01-03 12:40:24 -0500
commitc37d493327ded5952f46cbf39aef920e47c1d7d9 (patch)
treee9e4ac7eec0d500f0b4678bd97cf3d4edd9b18c8 /ide-hover.c
parent1c74c64c6429ebc3720e519cfb155b0a914e1c24 (diff)
use different keys for hover+highlights to be less distracting
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;