Lagrange [work/v1.13]

Cleanup

=> 1ef64c80a7d2ea87b0f0026e42a06a0e8fb2176b

diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index 6f4c3a6b..35907150 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -2427,11 +2427,7 @@ static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) {
         const int key  = ev->key.keysym.sym;
         const int mods = keyMods_Sym(ev->key.keysym.mod);
 #if !LAGRANGE_USE_SYSTEM_TEXT_INPUT
-#  if !defined (iPlatformTerminal)
-        if (mods == KMOD_PRIMARY) {
-#  else
-        if (mods == KMOD_SECONDARY) {
-#  endif
+        if (mods == KMOD_UNDO) {
             switch (key) {
                 case 'c':
                 case 'x':
diff --git a/src/ui/util.h b/src/ui/util.h
index 97c7f6bc..0ab40abb 100644
--- a/src/ui/util.h
+++ b/src/ui/util.h
@@ -87,16 +87,19 @@ iInt2   coord_MouseWheelEvent   (const SDL_MouseWheelEvent *);
 #   define KMOD_PRIMARY     KMOD_CTRL
 #   define KMOD_SECONDARY   KMOD_ALT
 #   define KMOD_ACCEPT      KMOD_ALT
+#   define KMOD_UNDO        KMOD_ALT
 #   define KMOD_ZOOM        0
 #elif defined (iPlatformApple)
 #   define KMOD_PRIMARY     KMOD_GUI
 #   define KMOD_SECONDARY   KMOD_GUI | KMOD_SHIFT
 #   define KMOD_ACCEPT      KMOD_PRIMARY
+#   define KMOD_UNDO        KMOD_PRIMARY
 #   define KMOD_ZOOM        KMOD_PRIMARY
 #else
 #   define KMOD_PRIMARY     KMOD_CTRL
 #   define KMOD_SECONDARY   KMOD_CTRL | KMOD_SHIFT
 #   define KMOD_ACCEPT      KMOD_PRIMARY
+#   define KMOD_UNDO        KMOD_PRIMARY
 #   define KMOD_ZOOM        KMOD_PRIMARY
 #endif
 
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.13/cdiff/1ef64c80a7d2ea87b0f0026e42a06a0e8fb2176b
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
68.31521 milliseconds
Gemini-to-HTML Time
0.278776 milliseconds

This content has been proxied by September (3851b).