-
Notifications
You must be signed in to change notification settings - Fork 389
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
Sanitize text pasted into hex text boxes #3684
Conversation
src/BizHawk.Client.EmuHawk/CustomControls/ClipboardEventTextBox.cs
Outdated
Show resolved
Hide resolved
src/BizHawk.Client.EmuHawk/CustomControls/ClipboardEventTextBox.cs
Outdated
Show resolved
Hide resolved
Does this specifically break any functionality on unix? or just fail to add new functionality? If it is the former, I say we merge this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adelikat is right, this is better than what we have. Please rebase.
src/BizHawk.Client.EmuHawk/CustomControls/ClipboardEventTextBox.cs
Outdated
Show resolved
Hide resolved
src/BizHawk.Client.EmuHawk/CustomControls/ClipboardEventTextBox.cs
Outdated
Show resolved
Hide resolved
Trim `0x` and `$` prefixes and whitespace pasted into `HexTextBox` and `WatchValueBox`. Prevent pasting non-hex text. Add `ClipboardEventTextBox` control with `OnPaste` event
c494fd8
to
40dce63
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Will merge tomorrow if there are no objections.
Add
ClipboardEventTextBox
control with anOnPaste
method and makeHexTextBox
andWatchValueBox
inherit from thatOverride normal paste behavior to trim
0x
/$
/whitespace from pasted textPrevent pasting of non-hex text
Resolves #3682