diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-03 11:57:40 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-03 11:58:51 +0200 |
commit | 5b1b19d6d0e07103cdeb8df2dcd838fe67a923cd (patch) | |
tree | 6509e3f70c9fb23f6575cbcf5a35754635e5d27c /src/ui/window.c | |
parent | 12630f504b022b0718655a615d2fbb1d045ded18 (diff) |
Load keyboard modifier mapping from modmap.txt
IssueID #87
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 7 |
1 files changed, 0 insertions, 7 deletions
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) { | |||
1596 | As a workaround, ignore these events. */ | 1596 | As a workaround, ignore these events. */ |
1597 | return iTrue; /* won't go to bindings, either */ | 1597 | return iTrue; /* won't go to bindings, either */ |
1598 | } | 1598 | } |
1599 | /* Apply keyboard modifier mapping. */ | ||
1600 | if (event.type == SDL_KEYDOWN || event.type == SDL_KEYUP) { | ||
1601 | if (event.key.keysym.sym == SDLK_CAPSLOCK) { | ||
1602 | setCapsLockDown_Keys(event.key.state == SDL_PRESSED); | ||
1603 | } | ||
1604 | event.key.keysym.mod = mapMods_Keys(event.key.keysym.mod & ~KMOD_CAPS); | ||
1605 | } | ||
1606 | if (event.type == SDL_MOUSEBUTTONDOWN && d->ignoreClick) { | 1599 | if (event.type == SDL_MOUSEBUTTONDOWN && d->ignoreClick) { |
1607 | d->ignoreClick = iFalse; | 1600 | d->ignoreClick = iFalse; |
1608 | return iTrue; | 1601 | return iTrue; |