Cannot add Keypad Dot as shortcut.
Posted: Fri Jun 13, 2025 1:14 am
Hi!
I am making a small RPN calculator based on the HP-15C to learn PureBasic. It seems that I cannot assign the shortcut for the dot (.) on MacOS. I found t he shortcuts constants and added them (#PB_Shortcut_Decimal,#PB_Shortcut_Separator) ; it works on Windows.

I am making a small RPN calculator based on the HP-15C to learn PureBasic. It seems that I cannot assign the shortcut for the dot (.) on MacOS. I found t he shortcuts constants and added them (#PB_Shortcut_Decimal,#PB_Shortcut_Separator) ; it works on Windows.

Code: Select all
KeyLayout:
Data.i #PB_Shortcut_0, 46,
#PB_Shortcut_Pad0, 46,
#PB_Shortcut_1, 36,
#PB_Shortcut_Pad1, 36,
#PB_Shortcut_2, 37,
#PB_Shortcut_Pad2, 37,
#PB_Shortcut_3, 38,
#PB_Shortcut_Pad3, 38,
#PB_Shortcut_4, 26,
#PB_Shortcut_Pad4, 26,
#PB_Shortcut_5, 27,
#PB_Shortcut_Pad5, 27,
#PB_Shortcut_6, 28,
#PB_Shortcut_Pad6, 28,
#PB_Shortcut_7, 16,
#PB_Shortcut_Pad7, 16,
#PB_Shortcut_8, 17,
#PB_Shortcut_Pad8, 17,
#PB_Shortcut_9, 18,
#PB_Shortcut_Pad9, 18,
#PB_Shortcut_Return, 35,
#PB_Shortcut_Decimal, 47,
#PB_Shortcut_Separator, 47,
#PB_Shortcut_Add, 49,
#PB_Shortcut_Subtract, 39,
#PB_Shortcut_Divide, 19,
#PB_Shortcut_Multiply, 29,
#PB_Shortcut_Back, 34,
#PB_Shortcut_Up, 4232,
#PB_Shortcut_Down, 32,
#PB_Shortcut_Right, 33,
#PB_Shortcut_E, 25,
#Null, #Null