summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-03 11:03:47 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-03 11:58:51 +0200
commite0f586866ebafa296bda849b392d09fc2e14d487 (patch)
tree5536cf6f56f9c71db6b24cc185618387c35bdf4d /src/ui/inputwidget.c
parent76f9ab985c135c6f691276b4edd0c340a6bc2de1 (diff)
CapsLock as a modifier key; adding a modifier mapping table
IssueID #87
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r--src/ui/inputwidget.c2
1 files changed, 1 insertions, 1 deletions
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) {
377} 377}
378 378
379iLocalDef iBool isMarking_(void) { 379iLocalDef iBool isMarking_(void) {
380 return (SDL_GetModState() & KMOD_SHIFT) != 0; 380 return (modState_Keys() & KMOD_SHIFT) != 0;
381} 381}
382 382
383void setCursor_InputWidget(iInputWidget *d, size_t pos) { 383void setCursor_InputWidget(iInputWidget *d, size_t pos) {