summaryrefslogtreecommitdiff
path: root/ide-highlights.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-highlights.c
parent1c74c64c6429ebc3720e519cfb155b0a914e1c24 (diff)
use different keys for hover+highlights to be less distracting
Diffstat (limited to 'ide-highlights.c')
-rw-r--r--ide-highlights.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ide-highlights.c b/ide-highlights.c
index 511a2fe..e568820 100644
--- a/ide-highlights.c
+++ b/ide-highlights.c
@@ -52,10 +52,9 @@ void highlights_frame(Ted *ted) {
return;
}
const Settings *settings = buffer_settings(buffer);
- bool ctrl_down = SDL_GetKeyboardState(NULL)[SDL_SCANCODE_LCTRL]
- || SDL_GetKeyboardState(NULL)[SDL_SCANCODE_RCTRL];
+ bool f2_down = SDL_GetKeyboardState(NULL)[SDL_SCANCODE_F2];
if (!settings->highlight_enabled
- || (!settings->highlight_auto && !ctrl_down)) {
+ || (!settings->highlight_auto && !f2_down)) {
highlights_close(ted);
return;
}