PB 6.03: attaching a shortcut to a gadget with & nonfunctional
Posted: Sat Nov 04, 2023 4:34 pm
To reproduce, run the following code, and try to press alt+f for first, alt+t for toggle, etc. At least to my screen reader, NVDA, the keys are read out as having the shortcuts attached (e.g. "First button alt+f"), but the shortcuts don't actually work. This applies to more than just buttons (StringGadgets with an associated TextGadget(), for example, also have the same problem), but buttons were just the easiest example.
This isn't super new, pretty sure I also at least saw it on PB 6.02 but am not completely sure when it started.
Code: Select all
EnableExplicit
OpenWindow(0, 0, 0, 222, 200, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ButtonGadget(0, 10, 10, 200, 20, "&First")
ButtonGadget(1, 10, 40, 200, 20, "&Second")
ButtonGadget(2, 10, 70, 200, 20, "&Third")
ButtonGadget(3, 10, 100, 200, 60, "&Fourth")
ButtonGadget(4, 10, 170, 200, 20, "&Toggle Button", #PB_Button_Toggle)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
