Hi,

út 10. 1. 2023 v 12:06 odesílatel Guillermo Polito <
guillermopol...@gmail.com> napsal:

> Hi Pavel,
>
> thanks for looking into this.
>
> Why not adding those mappings in the table so they are mapped by `self
> mapSpecialCharacter: keysym sym` ?
>

This method does not take into account NumLock status and just converts the
character. But we may consider creating some table for it instead of just a
row of ifs. Originally, I expected to need to convert only four keys, so
the table would be a slower overkill, but now it may make sense. But maybe
it may make sense to create an even more general table that would handle
the conversion of any key, including various modifiers.
Let's move the conversation to the PR discussion:
https://github.com/pharo-project/pharo/pull/12258

-- Pavel


>
> G
>
> El 6 ene. 2023, a las 08:53, Pavel Krivanek <pavel.kriva...@gmail.com>
> escribió:
>
> Hi,
>
> that is interesting issue. I have here a notebook with Numpad where I can
> reproduce it. Pharo is getting information from SDL2 and there nothing
> really seems to tell us that the incomming event is PgDown or similar key.
>
> If I log incomming events in OSSDL2BackendWindow>>#visitKeyDownEvent:, I'm
> getting these values:
>
> Num 3
> a SDL_KeyDownEventan Array(835757 a SDL_Keysym#(4096 91 1073741915) 768 1
> 1)
> Num PgDown
> a SDL_KeyDownEventan Array(860624 a SDL_Keysym#(0 91 1073741915) 768 1 1)
> PgDown
> a SDL_KeyDownEventan Array(886723 a SDL_Keysym#(0 78 1073741902) 768 1 1)
>
> (ignore the first number, the values in SDL_Keysym are mod, scancode, sym)
>
> So the information about the key event only differs in the Num Lock
> modifier. It is way too low-level. I see now the only solution - to the the
> ugly manual conversion, You may try to install the attached *.st file (drag
> it on Pharo window and then choose to install).
>
> I will open an issue.
>
> Cheers,
> -- Pavel
>
>
>
> čt 5. 1. 2023 v 17:18 odesílatel Aik-Siong Koh <as...@askoh.com> napsal:
>
>> Thanks for help.
>> I have an OMEN 17" notebook.
>> The keyboard has NumPad with Num Lock.
>> Superimposed on the numbers are Home, End, PgUp, etc.
>> When Num Lock is on, 1,2,3,4... works everywhere in Windows and apps.
>> When Num Lock is off, Home, End, PgUp, etc. work in Windows and every app
>> except in Pharo (9, 10 or 11).
>>     In Pharo, pressing the Home key does nothing at all.
>>
>> FYI. Above the Numpad are two keys: (HOME / PG UP) and (END / PG DN)
>> They work in Pharo with the FN key to get HOME and END.
>>
>> I hope this helps.
>>
>> Aik-Siong Koh
>>
>>
>> Pavel Krivanek wrote:
>>
>> Hi, in Schmidt, we use Pharo 11 on Windows and Home and End keys work for
>> us. Tested in the code editor and Calypso lists. Do you miss it in some
>> special context, or does it not work for you at all? Do you use some
>> different input methods? Or keyboard layouts are the boring European ones.
>>
>> -- Pavel
>>
>> st 4. 1. 2023 v 16:09 odesílatel Aik-Siong Koh <as...@askoh.com> napsal:
>>
>>> I do use Pharo Launcher.
>>> I really miss Home and End keys in Pharo right now.
>>> Are there very few users of Pharo in Windows?
>>> Aik-Siong
>>>
>>> Esteban Lorenzano wrote:
>>>
>>> yes, but for windows the recommended way is to use the pharo launcher
>>> installer : https://files.pharo.org/pharo-launcher/windows
>>> or, if you want to download the standalone VM:
>>> http://files.pharo.org/get-files/100/pharo-vm-Windows-x86_64-stable.zip
>>> Esteban
>>>
>>> On Jan 4 2023, at 3:25 pm, Aik-Siong Koh <as...@askoh.com>
>>> <as...@askoh.com> wrote:
>>>
>>>
>>> Does Windows get as good support as Linux or Mac?
>>> I am waiting for the Home and End key to work on Windows.
>>> Thanks,
>>> Aik-Siong Koh
>>>
>>> Esteban Lorenzano wrote:
>>>
>>>
>>> Hi,
>>>
>>> I updated linux OBS builds to get it up to date with distro changes :
>>>
>>> Added:
>>>
>>>    - Fedora 37
>>>    - Ubuntu 22.10
>>>    - OpenSUSE Leap 15.3
>>>    - OpenSUSE Leap 15.4
>>>
>>> Fixed:
>>>
>>>    - Arch (Manjaro)
>>>    - OpenSUSE Tumbleweed
>>>
>>> Removed (Obsoletes):
>>>
>>>    - OpenSUSE Leap 15.1
>>>    - OpenSUSE Leap 15.2
>>>    - Fedora 32
>>>    - Fedora 33
>>>
>>> You can test all the new/fixed as correspond:
>>> https://software.opensuse.org//download.html?project=devel%3Alanguages%3Apharo%3Alatest&package=pharo9-ui
>>> Enjoy,
>>> Esteban
>>>
>>>
>>>
>> <OSSDL2BackendWindow-visitKeyDownEvent...st>
>
>
>

Reply via email to