Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 5 tasks
zethon opened this issue Mar 3, 2023 · 2 comments
Open
1 of 5 tasks

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

zethon opened this issue Mar 3, 2023 · 2 comments

Comments

@zethon
Copy link
Contributor

zethon commented Mar 3, 2023

What OS?

  • Windows
  • Mac
  • Linux (Which distro?)
  • iOS (phone or ipad?)
  • Android (phone or tablet?)

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
Copy link
Contributor Author

zethon commented Mar 3, 2023

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
Copy link
Owner

dannagle commented Mar 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants