Skip to content

Commit 22ec0a9

Browse files
committed
sdl1: do not register q to keycontrol
In order not to be pressed by accident - other SW displays disable 'q' as well. Also, the call was incorrect - the message with the key would receive root module because the first argument is the receiver of the key event, which should be the sdl display mod. Also the events were not handled in check_message event.
1 parent 466de28 commit 22ec0a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/video_display/sdl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @author Martin Pulec <[email protected]>
66
*/
77
/*
8-
* Copyright (c) 2010-2023 CESNET, z. s. p. o.
8+
* Copyright (c) 2010-2025 CESNET
99
* All rights reserved.
1010
*
1111
* Redistribution and use in source and binary forms, with or without
@@ -43,7 +43,7 @@
4343
#include "host.h"
4444

4545
#include "debug.h"
46-
#include "keyboard_control.h"
46+
// #include "keyboard_control.h"
4747
#include "lib_common.h"
4848
#include "messaging.h"
4949
#include "module.h"
@@ -551,7 +551,7 @@ static void *display_sdl_init(struct module *parent, const char *fmt, unsigned i
551551
s->play_audio = FALSE;
552552
}
553553

554-
keycontrol_register_key(get_module(get_root_module(parent), "control"), 'q', "execute exit", "quit");
554+
// keycontrol_register_key(&s->mod, 'q', "execute exit", "quit");
555555

556556
return (void *)s;
557557
}

0 commit comments

Comments
 (0)