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

Mac OSX specific forum
868Mhz
New User
New User
Posts: 9
Joined: Sat Aug 19, 2023 6:44 pm

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

Post 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
User avatar
mk-soft
Always Here
Always Here
Posts: 5404
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post by mk-soft »

Its a Bug ...

Added bug report
Link: https://www.purebasic.fr/english/viewtopic.php?t=83090
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
868Mhz
New User
New User
Posts: 9
Joined: Sat Aug 19, 2023 6:44 pm

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

Post by 868Mhz »

Thanks mk-soft for confirming this.
dibor
Enthusiast
Enthusiast
Posts: 125
Joined: Wed May 20, 2020 5:19 pm
Location: The 3rd planet in the Solar System
Contact:

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

Post by dibor »

Confirm on M1 and M2 machines.
Mac Studio M1Max, PB 6.03Arm64 and x64.
Macbook Air M2, PB 6.03Arm64 and x64.
Windows 10, PB 6.03 x64 and x86.
Post Reply