Skip to content

Instantly share code, notes, and snippets.

@blueyed
Created January 7, 2015 01:36
Show Gist options
  • Save blueyed/33303439ac929074d9d3 to your computer and use it in GitHub Desktop.
Save blueyed/33303439ac929074d9d3 to your computer and use it in GitHub Desktop.
commit 9c28a611c1d90c9c97ad87da1b1ee9b768866cd0
Author: Daniel Hahler <git@thequod.de>
Date: Fri Dec 19 22:03:16 2014 +0100
Use ctrl-alt-shift for ISO 14755 mode
diff --git a/src/command.C b/src/command.C
index 05e6f65..da869cd 100644
--- a/src/command.C
+++ b/src/command.C
@@ -845,7 +845,7 @@ rxvt_term::key_press (XKeyEvent &ev)
iso14755buf = 0;
}
}
- else if (option (Opt_iso14755) &&
+ else if (option (Opt_iso14755) && meta &&
((ctrl && (keysym == XK_Shift_L || keysym == XK_Shift_R))
|| (shft && (keysym == XK_Control_L || keysym == XK_Control_R))))
if (!(iso14755buf & ISO_14755_STARTED))
@@ -918,7 +918,9 @@ rxvt_term::key_release (XKeyEvent &ev)
return;
}
- else if ((ev.state & (ShiftMask | ControlMask)) != (ShiftMask | ControlMask))
+ else if ((ev.state & (ShiftMask | ControlMask)) != (ShiftMask | ControlMask)
+ && (ev.state & (ShiftMask | ModMetaMask)) != (ShiftMask | ModMetaMask)
+ && (ev.state & (ControlMask | ModMetaMask)) != (ControlMask | ModMetaMask))
{
# if ISO_14755
scr_overlay_off ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment