Page 1 of 1
up/down arrow in InputRequester move/select by character
Posted: Thu Jun 26, 2025 9:07 pm
by Quin
To reproduce, run this very simple test program, and press your up/down arrow keys, or try to press shift+up/down arrow to select text.
Code: Select all
InputRequester("Test", "This is a test", "Text")
It seems to move you by character, for some super weird reason. With NVDA, the entire content of the line gets announced when I up/down arrow, but my cursor moves by one character to the left/right each time I press it.
// Moved from "Bugs - Windows" to "General Discussion" (Kiffi)
Re: up/down arrow in InputRequester move/select by character
Posted: Thu Jun 26, 2025 11:12 pm
by User_Russian
Then it's a WinAPI bug!
Code: Select all
If OpenWindow(0, 0, 0, 322, 100, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CreateWindowEx_(0, "edit", "Text", #WS_CHILD|#WS_VISIBLE, 8, 10, 306, 20, WindowID(0), 0, 0, 0)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
You need to report this to Microsoft so they can fix it.
Re: up/down arrow in InputRequester move/select by character
Posted: Thu Jun 26, 2025 11:51 pm
by Quin
wtf...
I could've sworn this only happened in InputRequester, but it's any string gadget created by PB. Incredibly odd.
Will do some more testing and see if it's exclusive to PB, or the Windows API.
Re: up/down arrow in InputRequester move/select by character
Posted: Fri Jun 27, 2025 9:09 am
by BarryG
It's not a bug. It's the way text fields have always worked in Windows. Try it in the "Find" field in Notepad.
