This has been a whoops *forever*. Not strictly a bug (unless somebody
decides the underlying problem is a bug). I've always preferred the
Athena-style scrollbar bindings for left/right mouse, but under XEmacs
right-mouse would always lock the keyboard up (while left-mouse was OK,
and in fact would UNlock the keyboard for me). The *underlying* problem
is that the comment in lwlib/xlwscrollbar.c says "add these translations",
but is missing one translation. There's *already* a <Btn1Up> translation
that does Release() - so left-mouse works. As listed, Bnt3Down would do
a PageUpOrLeft - but when you release the mouse button, Release() doesn't
happen, causing a keyboard wedge.
Possible bug: Should there be a <Btn3Up>: Release() in the
default_translations table in xlwscrollbar.c (there's already Release()
for Btn1Up and Btn2Up)?
Patch for the comment attached. Feel free to reject if the consensus is
that default_translations[] needs fixing instead...
/Valdis
Index: lwlib/xlwscrollbar.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lwlib/xlwscrollbar.c,v
retrieving revision 1.14
diff -u -r1.14 xlwscrollbar.c
--- lwlib/xlwscrollbar.c 2001/04/12 18:21:56 1.14
+++ lwlib/xlwscrollbar.c 2001/12/16 09:50:29
@@ -30,7 +30,8 @@
*
* Emacs*XlwScrollBar.translations: #override \n\
* <Btn1Down>: PageDownOrRight() \n\
- * <Btn3Down>: PageUpOrLeft()
+ * <Btn3Down>: PageUpOrLeft() \n\
+ * <Btn3Up>: Release()
*
*/