backspace key
Ned Konz
ned at bike-nomad.com
Thu Aug 9 01:30:18 UTC 2001
On Wednesday 08 August 2001 05:38 pm, you wrote:
> Ned Konz <ned at bike-nomad.com> wrote:
> > > And make sure you do not have the VM that maps both backspace and
> > > delete to del. I don't know about the released 3.0, but in 3.0pre2 that
> > > was still the case.
> >
> > Yes, I forgot about this one. It's something I always remove.
>
> And it's removed how?
Ah. Sorry. Look in src/unix/sqXWindow.c, in recordKeyboardEvent(). Remove or
comment out the bit that says:
if (charCode == 127)
charCode= 8;
If you have a wheel mouse, you may also want to patch your sources to deal
with it (don't know if this got into the recent version):
--- /tmp/Squeak-3.0/src/unix/sqXWindow.c Wed Feb 7 15:57:26 2001
+++ src/unix/sqXWindow.c Wed Feb 7 22:37:05 2001
@@ -831,6 +831,19 @@
static void recordMouseEvent(XButtonEvent *xevt, int pressFlag)
{
+ /* mouse wheel support */
+ if ((xevt->button == 4 || xevt->button == 5) && pressFlag)
+ {
+ sqKeyboardEvent *evt= allocateKeyboardEvent();
+ evt->charCode= (xevt->button + 26); /* Up/Down */
+ evt->pressCode= EventKeyChar;
+ evt->modifiers= CtrlKeyBit | modifierMap[(xevt->state) & 0xF];
+ evt->reserved1=
+ evt->reserved2=
+ evt->reserved3= 0;
+ }
+ else
+ {
sqMouseEvent *evt= allocateMouseEvent();
evt->x= mousePosition.x;
evt->y= mousePosition.y;
@@ -838,6 +851,7 @@
evt->modifiers= (buttonState >> 3);
evt->reserved1=
evt->reserved2= 0;
+ }
}
static void recordKeyboardEvent(XKeyEvent *xevt, int pressCode)
--
Ned Konz
currently: Stanwood, WA
email: ned at bike-nomad.com
homepage: http://bike-nomad.com
More information about the Squeak-dev
mailing list
|