[Done] PB 6.20 Canvas keydown returning wrong code for some keys
Posted: Mon Jun 09, 2025 12:41 am
				
				The following code snippet returns the same key code for "," and "." on MacOS 14.5.7.  It also appears to happen on 15.5
Original discussion: viewtopic.php?p=641913#p641913
Phil
			Original discussion: viewtopic.php?p=641913#p641913
Phil
Code: Select all
OpenWindow(0,10,10,800,600,"")
CanvasGadget(1,0,0,800,600,#PB_Canvas_Keyboard)
While WaitWindowEvent()<>#PB_Event_CloseWindow
	If EventType()=#PB_EventType_KeyDown
		Debug "canvas key="+Str(GetGadgetAttribute(1,#PB_Canvas_Key))
	EndIf
Wend