On Fri, Apr 1, 2011 at 3:03 PM, bill lam <[email protected]> wrote: > Is that ( if. key ~: GDK_Return do. 0 return. end. ) redundant?
No they are not redundant. Commenting them out results in undesirable behaviour. > I can see Edit (not Term) trap home and arrow keys to implement movement by > J token, does KP_... keys behave in the same way? You're right they don't behave exactly the same. Although AFAICS it is the Term window that allows movement by J token and not the Edit window. > Птн, 01 Апр 2011, Ric Tikkanz писал(а): >> AFAIK all the other keys seem to work OK. >> >> I've committed a fix to the Public repository that seems to fix the >> behaviour of KP_Enter in the Gtk Term window. >> >> There are a bunch of other references to GDK_Return throughout ide/gtk >> (along the lines of ( if. key ~: GDK_Return do. 0 return. end. ) ) but >> the use of GDK_KP_Enter seems to give the same result for the cases >> I've tested (e.g. FIF). >> >> On Fri, Apr 1, 2011 at 1:03 PM, bill lam <[email protected]> wrote: >> > I work with a mini size keybboard that does not have num keypad to test. >> > You may also test if home or arrow needs fix. The relevent gdk scan codes >> > for >> > num keypad are >> > >> > #define GDK_KP_Space 0xff80 >> > #define GDK_KP_Tab 0xff89 >> > #define GDK_KP_Enter 0xff8d >> > #define GDK_KP_F1 0xff91 >> > #define GDK_KP_F2 0xff92 >> > #define GDK_KP_F3 0xff93 >> > #define GDK_KP_F4 0xff94 >> > #define GDK_KP_Home 0xff95 >> > #define GDK_KP_Left 0xff96 >> > #define GDK_KP_Up 0xff97 >> > #define GDK_KP_Right 0xff98 >> > #define GDK_KP_Down 0xff99 >> > #define GDK_KP_Prior 0xff9a >> > #define GDK_KP_Page_Up 0xff9a >> > #define GDK_KP_Next 0xff9b >> > #define GDK_KP_Page_Down 0xff9b >> > #define GDK_KP_End 0xff9c >> > #define GDK_KP_Begin 0xff9d >> > #define GDK_KP_Insert 0xff9e >> > #define GDK_KP_Delete 0xff9f >> > #define GDK_KP_Equal 0xffbd >> > #define GDK_KP_Multiply 0xffaa >> > #define GDK_KP_Add 0xffab >> > #define GDK_KP_Separator 0xffac >> > #define GDK_KP_Subtract 0xffad >> > #define GDK_KP_Decimal 0xffae >> > #define GDK_KP_Divide 0xffaf >> > #define GDK_KP_0 0xffb0 >> > #define GDK_KP_1 0xffb1 >> > #define GDK_KP_2 0xffb2 >> > #define GDK_KP_3 0xffb3 >> > #define GDK_KP_4 0xffb4 >> > #define GDK_KP_5 0xffb5 >> > #define GDK_KP_6 0xffb6 >> > #define GDK_KP_7 0xffb7 >> > #define GDK_KP_8 0xffb8 >> > #define GDK_KP_9 0xffb9 >> > >> > Птн, 01 Апр 2011, Ric Tikkanz писал(а): >> >> Currently the Gtk IDE Term window doesn't treat the Return key and the >> >> Keypad Enter key as equivalent. >> >> Pressing the Return key while the curspr is in the last line of the >> >> Term window will execute the line. Pressing the Return key while the >> >> cursor is in a line other than the last one in the Term window will >> >> copy that line to the last line of the Term window. >> >> Pressing the Keypad_Enter key will just insert a LF whenever it is >> >> pressed. >> >> >> >> I suspect that this behaviour is not intended and intend to correct it >> >> so that both keys have the same effect. Any objections? >> >> ---------------------------------------------------------------------- >> >> For information about J forums see http://www.jsoftware.com/forums.htm >> > >> > -- >> > regards, >> > ==================================================== >> > GPG key 1024D/4434BAB3 2008-08-24 >> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 >> > ---------------------------------------------------------------------- >> > For information about J forums see http://www.jsoftware.com/forums.htm >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
