[comp.sys.apollo] Virtual Key Bugs?

nazgul@alfalfa.com (Kee Hinckley) (02/27/91)

I have two oddities with Virtual Key Bindings in Motif 1.1.  One definitely looks like a
Motif bug, the other one I don't understand.

o  Cut works in read-only text widgets.  It ought presumbably do a Copy, but
   actually it just nukes the whole thing, even though it's "readonly".

o  The Apollo keyboard has Cut/Copy/Paste keys (as well as a lot of other
   handy ones).  Cut, as it happens, is Shift Copy.  I'm not sure if that's
   relevant or not.  Anyway.  If I define the Cut and Copy keys appropriately,
   both keys do a Cut.  If I define Cut to be Shift<Key>Copy, then it doesn't
   do anything at all.  Is this an Apollo specific problem, or a more generic
   confusion?  (And in either case, what can I do about it.)

While I'm at it.  I can't seem to get Help to work on the Help key, and
I can't find a keyname for the Enter key anywhere.

For those who are curious and don't have an Apollo.  Here's the kind of
keyboard that 10 years of a graphical windowing system produces:

Left hand side (some names appear on two lines, some are two functions,
one the shift of the other - which is which should be fairly obvious):
---
Ins		Line		Char		[*Not* the same as Delete]
Mark		Del		Del


Cut		Undo		Move
Copy		Paste		Grow

|<-		Shell		->|		[Begin of line, end of line]
		Cmd

<- (boxed)	^		-> (boxed)	[Scroll left, scroll right]

<-		Next		->
		Window

^ (boxed)	v		v (boxed)	[Scroll up, scroll down]
---

10 Function keys on the top.
On the right, next to the shift key, a Pop key.

Upper right row:
---
Again	Read	Save	Abort	Help
		Edit	Exit	Hold
---

You too can manipulate all of your windows and text without ever touching
the mouse.  Not to worry though.  HP will soon be taking them all away I'm sure.


Alfalfa Software, Inc.          |       Poste:  The EMail for Unix
nazgul@alfalfa.com              |       Send Anything... Anywhere
617/646-7703 (voice/fax)        |       info@alfalfa.com

I'm not sure which upsets me more; that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

hamilton@alfalfa.com (James A. Hamilton) (02/28/91)

> While I'm at it.  I can't seem to get Help to work on the Help key, and
> I can't find a keyname for the Enter key anywhere.

Using xev, I get the following:

KeyPress event, serial 12, synthetic NO, window 0x500001,
    root 0x80069, subw 0x0, time 10134347, (124,118), root:(226,220),
    state 0x0, keycode 177 (keysym 0xff8d, KP_Enter), same_screen YES,
"   XLookupString gives 1 characters:  "

KeyRelease event, serial 14, synthetic NO, window 0x500001,
    root 0x80069, subw 0x0, time 10138829, (124,118), root:(226,220),
    state 0x0, keycode 177 (keysym 0xff8d, KP_Enter), same_screen YES,
"   XLookupString gives 1 characters:  "

and

KeyPress event, serial 12, synthetic NO, window 0x500001,
    root 0x80069, subw 0x0, time 10202643, (81,118), root:(183,220),
    state 0x0, keycode 184 (keysym 0xffe2, Shift_R), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyPress event, serial 14, synthetic NO, window 0x500001,
    root 0x80069, subw 0x0, time 10203542, (81,118), root:(183,220),
    state 0x1, keycode 162 (keysym 0xff6a, Help), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyRelease event, serial 14, synthetic NO, window 0x500001,
    root 0x80069, subw 0x0, time 10203787, (81,118), root:(183,220),
    state 0x1, keycode 162 (keysym 0xff6a, Help), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyRelease event, serial 14, synthetic NO, window 0x500001,
    root 0x80069, subw 0x0, time 10205432, (81,118), root:(183,220),
    state 0x1, keycode 184 (keysym 0xffe2, Shift_R), same_screen YES,
    XLookupString gives 0 characters:  ""

Do you need something further?

> Alfalfa Software, Inc.          |       Poste:  The EMail for Unix
> nazgul@alfalfa.com              |       Send Anything... Anywhere
> 617/646-7703 (voice/fax)        |       info@alfalfa.com
> 
> I'm not sure which upsets me more; that people are so unwilling to accept
> responsibility for their own actions, or that they are so eager to regulate
> everyone else's.
>