dannagle / PacketSender

Network utility for sending / receiving TCP, UDP, SSL, HTTP
https://packetsender.com
GNU General Public License v2.0
2.3k stars 360 forks source link

[BUG] Cursor in HEX box moves when app loses focus #311

Open zethon opened 1 year ago

zethon commented 1 year ago

What OS?

Description of issue

Enter a non-zero value in the HEX field, say: 01 23 45 67 89 then move the cursor so that it is between 23 and 45. Then switch to another application window, then come back to PacketSender. The cursor has moved to the end of input.

zethon commented 1 year ago

It looks like it doesn't always happen with smaller inputs. The only way I was able to get it to consistently happen was if the text in the HEX field was too big to fit in the window.

I wouldn't be surprised if this was a Qt bug actually

dannagle commented 1 year ago

Thanks for submitting. I was able to recreate this in Windows. I don't know the root cause yet, so this ticket is remaining open.

I do a lot of event triggering (such as on-text-changed) on those fields to keep the ASCII and HEX in sync with each other. For me, I had to type something in the other window and then alt-tab back. My cursor was now at the end. Perhaps that triggers an event somehow. Unfortunately, it may be triggering an event I need to keep.