Screen readers always report "null" at the end of menu items if they don't contain a tab.

Found an issue in SpiderBasic ? Please report it here !
Quin
Posts: 24
Joined: Wed Nov 08, 2023 4:38 pm

Screen readers always report "null" at the end of menu items if they don't contain a tab.

Post by Quin »

Run the following code with a screen reader active (I personally use NVDA on Windows, it's free and open source).

Code: Select all

EnableExplicit

OpenWindow(0, 100, 150, 195, 260, "Menu test", #PB_Window_TitleBar)
CreateMenu(0, WindowID(0))
MenuTitle("File")
MenuItem(0, "Bugged")
MenuItem(1, "Not bugged" + #TAB$)
Note that the Bugged menu item gets read as "Bugged null" when you arrow over it, while "Not bugged" does not. I assume this has something to do with hotkeys, because simply putting a tab makes the extra space and the null go away.