up/down arrow in InputRequester move/select by character

Everything else that doesn't fall into one of the other PB categories.
Quin
Addict
Addict
Posts: 1133
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

up/down arrow in InputRequester move/select by character

Post 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)
User_Russian
Addict
Addict
Posts: 1528
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: up/down arrow in InputRequester move/select by character

Post by User_Russian »

Then it's a WinAPI bug! :D :!:

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.
Quin
Addict
Addict
Posts: 1133
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: up/down arrow in InputRequester move/select by character

Post 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.
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Re: up/down arrow in InputRequester move/select by character

Post 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. ;)
Post Reply