From 5b1b19d6d0e07103cdeb8df2dcd838fe67a923cd Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 3 Mar 2021 11:57:40 +0200 Subject: Load keyboard modifier mapping from modmap.txt IssueID #87 --- src/ui/window.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/ui/window.c') diff --git a/src/ui/window.c b/src/ui/window.c index bfa95f90..fb5daa80 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1596,13 +1596,6 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) { As a workaround, ignore these events. */ return iTrue; /* won't go to bindings, either */ } - /* Apply keyboard modifier mapping. */ - if (event.type == SDL_KEYDOWN || event.type == SDL_KEYUP) { - if (event.key.keysym.sym == SDLK_CAPSLOCK) { - setCapsLockDown_Keys(event.key.state == SDL_PRESSED); - } - event.key.keysym.mod = mapMods_Keys(event.key.keysym.mod & ~KMOD_CAPS); - } if (event.type == SDL_MOUSEBUTTONDOWN && d->ignoreClick) { d->ignoreClick = iFalse; return iTrue; -- cgit v1.2.3