Introduction
Introduction Statistics Contact Development Disclaimer Help
Treat shift-button-3 as button-2. - sam - An updated version of the sam text ed…
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit 398c9890f56cb779ebaee2280c43988b3b134e8e
parent 4e17c4ff737cc7801d44c53bddc139aa2d0eaa26
Author: Rob King <[email protected]>
Date: Sun, 1 May 2016 00:56:28 -0500
Treat shift-button-3 as button-2.
This make sam much more usable with a two-button mouse, or on a
touchpad.
Diffstat:
doc/sam.1 | 5 ++---
libXg/gwin.c | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/doc/sam.1 b/doc/sam.1
@@ -732,7 +732,7 @@ Button 1 changes the selection.
Pointing to a non-current window with button 1 makes it current; within the cu…
Double-clicking selects text to the boundaries of words, lines, quoted strings…
.Pp
-Button 2 provides a menu of editing commands:
+Button 2 (or button 3 combined with the shift key) provides a menu of editing …
.Bl -tag -width Ds
.It Sy cut
Delete dot and save the delted text in the snarf buffer.
@@ -1033,4 +1033,4 @@ The only human language in which colors may be specified …
.Pp
The only human language in which output is generated is English.
.Pp
-There is no support for right-to-left text, ligatures, composed characters, or…
-\ No newline at end of file
+There is no support for right-to-left text, ligatures, composed characters, or…
diff --git a/libXg/gwin.c b/libXg/gwin.c
@@ -356,7 +356,7 @@ Mouseaction(Widget w, XEvent *e, String *p, Cardinal *np)
m.buttons = 0;
if(s & Button1Mask) m.buttons |= 1;
if(s & Button2Mask) m.buttons |= 2;
- if(s & Button3Mask) m.buttons |= 4;
+ if(s & Button3Mask) m.buttons |= (s & ShiftMask) ? 2 : 4;
if(s & Button4Mask) m.buttons |= 8;
f = ((GwinWidget)w)->gwin.gotmouse;
if(f)
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.