Page 1 of 1

Mac AddKeyboardShortCut, no event for Numpad keys in PB6.04

Posted: Sat Dec 16, 2023 1:57 pm
by 868Mhz
Hi, since PB6.04, no event is send for the numbers from the numpad keys with AddKeyboardShortcut on MacOs.
In former versions of PB, pressing e.g. 0 on the numpad returned 48 (the same as pressing the ‘normal’ 0 key)
from the debug in the example program below.
In PB6.04, pressing the 0 on the numpad is not recognised any more.
Could a Mac user test this on his machine please?

My system:
MacBook Pro with M1 Pro, Sonoma 14.1.2, BT Keyboard MX MCHNCL, Purebasic 6.04LTS

Code: Select all

If OpenWindow(0,0,0,200,200,"",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
  For i = 0 To 255
    AddKeyboardShortcut(0,i,i)
  Next
  Repeat
    Select WaitWindowEvent()
      Case #PB_Event_Menu
        Select EventMenu()
          Case  0 : Debug EventMenu()
          Default : Debug EventMenu()
        EndSelect
      Case #PB_Event_CloseWindow
        quit = 1
    EndSelect
  Until quit
EndIf
End

Re: Mac AddKeyboardShortCut, no event for Numpad keys in PB6.04

Posted: Sat Dec 16, 2023 2:22 pm
by mk-soft
Its a Bug ...

Added bug report
Link: https://www.purebasic.fr/english/viewtopic.php?t=83090

Re: Mac AddKeyboardShortCut, no event for Numpad keys in PB6.04

Posted: Sat Dec 16, 2023 2:34 pm
by 868Mhz
Thanks mk-soft for confirming this.

Re: Mac AddKeyboardShortCut, no event for Numpad keys in PB6.04

Posted: Sat Dec 16, 2023 8:08 pm
by dibor
Confirm on M1 and M2 machines.