diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-03 14:07:22 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-03 14:07:22 +0300 |
commit | c0942b96f1a78a4b78af68709f60c9d171fd11e9 (patch) | |
tree | 1e8f0ab6bfdc61db7535e4099d5bb15e9e26b7f7 /src/ui/inputwidget.c | |
parent | 8de8fc4997055e157eeca809edc96e8ae484f74a (diff) |
InputWidget: On PCs, use Ctrl+Shift+A to select all text
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index bd6927a6..51d62125 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -1728,6 +1728,9 @@ static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) { | |||
1728 | case SDLK_a: | 1728 | case SDLK_a: |
1729 | #if defined (iPlatformApple) | 1729 | #if defined (iPlatformApple) |
1730 | if (mods == KMOD_PRIMARY) { | 1730 | if (mods == KMOD_PRIMARY) { |
1731 | #else | ||
1732 | if (mods == (KMOD_PRIMARY | KMOD_SHIFT)) { | ||
1733 | #endif | ||
1731 | selectAll_InputWidget(d); | 1734 | selectAll_InputWidget(d); |
1732 | d->mark.start = 0; | 1735 | d->mark.start = 0; |
1733 | d->mark.end = cursorToIndex_InputWidget_(d, curMax); | 1736 | d->mark.end = cursorToIndex_InputWidget_(d, curMax); |
@@ -1736,7 +1739,6 @@ static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) { | |||
1736 | refresh_Widget(w); | 1739 | refresh_Widget(w); |
1737 | return iTrue; | 1740 | return iTrue; |
1738 | } | 1741 | } |
1739 | #endif | ||
1740 | /* fall through for Emacs-style Home/End */ | 1742 | /* fall through for Emacs-style Home/End */ |
1741 | case SDLK_e: | 1743 | case SDLK_e: |
1742 | if (mods == KMOD_CTRL || mods == (KMOD_CTRL | KMOD_SHIFT)) { | 1744 | if (mods == KMOD_CTRL || mods == (KMOD_CTRL | KMOD_SHIFT)) { |