Hello, all.

I wrote a new code.

The problem with the Windows backend is that when key down or key up event 
occur, 
we can not know for sure how it is actually printed by the key.

I did various trials and errors, but I was not able to realize the same 
functions 
as other platforms. So I changed my mind and I decided to ask the user to use 
what 
kind of keyboard he was using.

The original code can not be used in combination with the control key or alt key
except for the alphabet and number keys, and the key up event does not occur
with the numeric keys of the numeric keypad or symbol keys such as & and *.
The new code by default only generates the same key-down / key-up events as
the original, and behaves the same except ignoring the state of the keycaps.

In the new code, if you are using a US keyboard, when you write

USE: ui.backend.windows.keyboard.101-104

 in .factor-rc, you can solve the problem of the above original code.
Also, if you are using a keyboard for Japan, when

USE: ui.backend.windows.keyboard.106-109

is written, windows backend works in accordance with the keyboard.

If I can confirm that this code works stable, I will make a pull request. 
I'm looking forward to opinion from you.


https://github.com/kusumotonorio/factor/blob/windows-kn-plan2/basis/ui/backend/windows/windows.factor

https://github.com/factor/factor/compare/master...kusumotonorio:windows-kn-plan2



--
KUSUMOTO Norio



_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to