summaryrefslogtreecommitdiff
path: root/ide-highlights.c
diff options
context:
space:
mode:
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;
}