From e0f586866ebafa296bda849b392d09fc2e14d487 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 3 Mar 2021 11:03:47 +0200 Subject: CapsLock as a modifier key; adding a modifier mapping table IssueID #87 --- src/ui/inputwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/inputwidget.c') diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 600a4462..dd8fa744 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c @@ -377,7 +377,7 @@ iLocalDef size_t cursorMax_InputWidget_(const iInputWidget *d) { } iLocalDef iBool isMarking_(void) { - return (SDL_GetModState() & KMOD_SHIFT) != 0; + return (modState_Keys() & KMOD_SHIFT) != 0; } void setCursor_InputWidget(iInputWidget *d, size_t pos) { -- cgit v1.2.3