I found the solution to the issue.
In basis/ui/backend/windows/windows.factor, I added the line, "{ 190 "PERIOD"
}".
Then gesture-logger reported key-up events about the period key.
CONSTANT: wm-keydown-codes
H{
{ 8 "BACKSPACE" }
{ 9 "TAB" }
{ 13 "RET" }
{ 27 "ESC" }
{ 33 "PAGE_UP" }
{ 34 "PAGE_DOWN" }
{ 35 "END" }
{ 36 "HOME" }
{ 37 "LEFT" }
{ 38 "UP" }
{ 39 "RIGHT" }
{ 40 "DOWN" }
{ 45 "INSERT" }
{ 46 "DELETE" }
{ 112 "F1" }
{ 113 "F2" }
{ 114 "F3" }
{ 115 "F4" }
{ 116 "F5" }
{ 117 "F6" }
{ 118 "F7" }
{ 119 "F8" }
{ 120 "F9" }
{ 121 "F10" }
{ 122 "F11" }
{ 123 "F12" }
{ 190 "PERIOD" } ! <- added
}
--
KUSUMOTO Norio
> 2019/03/11 0:37、John Benediktsson <[email protected]>のメール:
>
> Okay, reported this as a bug on Github Issues, thanks.
>
> https://github.com/factor/factor/issues/2119
>
> I do not have time right this second to look into it, but maybe someone else
> can help or I'll get to it later.
>
> Thanks a lot for the report!
>
> Best,
> John.
>
> On Sat, Mar 9, 2019 at 3:39 PM Alexander Ilin <[email protected]> wrote:
> I confirm the same behavior on Windows 10, latest development build of 64-bit
> Factor.
> It doesn't depend on the numpad or on physical keys.
>
> For example, when I use the normal English/US layout, the keys for semicolon
> and comma (";" and ",") generate only the "key-down" events. Pressing "q" and
> "w" generates both "key-down" and "key-up".
> If I switch to the Programmer Dvorak layout, the physical keys that used to
> be "q" and "w" in the US layout now will produce the ";" and ","
> correspondingly, and they will again produce only the "key-down" events in
> the gesture-logger. Pressing the keys that formerly produced only "key-downs"
> as ";" and "," will now produce both "key-down" and "key-up", being mapped to
> "s" and "w".
>
> It seems that the physical keyboard or the layout is not to blame. For some
> reason Factor eats some of the key-up events for punctuation characters.
>
> There are many such characters that I can see treated differently by Factor:
> #&$^-=\`:;~/'"?@_[]{}(*+
> These Factor's treatment of these keys is not dependent on the physical key,
> but on the logically mapped character it produces under the currently
> selected layout.
>
> Numpad keys may be different in that even when Programmer Dvorak produces
> "a"-"f" or "x", they still don't give a ""key-up" event.
>
> 09.03.2019, 09:08, "John Benediktsson" <[email protected]>:
> > Interesting! Okay.
> >
> > Any details of the keyboard type or language settings you can share?
> > Windows 7? Is it 32-bit or 64-bit Factor?
> >
> > Thanks,
> > John.
> >
> > On Mar 8, 2019, at 8:26 PM, KUSUMOTO Norio <[email protected]> wrote:
> >
> >>> On my windows machine (Windows 7), when I hit 1 key which was in a
> >>> separate numeric pad,
> >>> Gesture log window showed :
> >>>
> >>> T{ key-down { sym “1” } }
> >>> User input: 1
> >>>
> >>> per one hit.
> >>
> >> Normal minus, dot, comma, colon, semi-colon key are also similar.
> >> There are not notifications about key-up.
> >>
> >> --
> >> KUSUMOTO Norio
> >>
> >>> 2019/03/09 13:00、KUSUMOTO Norio <[email protected]> のメール:
> >>>
> >>> Hi,
> >>>
> >>>> 2019/03/09 10:02、John Benediktsson <[email protected]> のメール:
> >>>>
> >>>> If you'd like to play around with how Factor receives various inputs,
> >>>> including the keyboard events, you can run the gesture-logger debug
> >>>> tool. It prints out a log of all gestures received by the window so you
> >>>> can see mouse movement, mouse clicks, key-up, key-down, etc:
> >>>>
> >>>> IN: scratchpad "gesture-logger” run
> >>>
> >>> Oh, nice tool! I did it.
> >>>
> >>> On my windows machine (Windows 7), when I hit 1 key which was in a
> >>> separate numeric pad,
> >>> Gesture log window showed :
> >>>
> >>> T{ key-down { sym “1” } }
> >>> User input: 1
> >>>
> >>> per one hit. The other hand, when I hit normal 1 key, it showed :
> >>>
> >>> T{ key-down { sym “1” } }
> >>> User input: 1
> >>> T{ key-up { sym “1” } }
> >>>
> >>> per one hit.
> >>
> >> _______________________________________________
> >> Factor-talk mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/factor-talk
> >
> > _______________________________________________
> > Factor-talk mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/factor-talk
>
> ---=====---
> Александр
>
>
>
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk