markdwags / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
https://www.razorce.com
GNU General Public License v3.0
139 stars 96 forks source link

FastColoredTextBox: Fix 'n' under mono. #181

Open dallenwilson opened 2 years ago

dallenwilson commented 2 years ago

'Fixes' issue #177.

Under mono, the mnemonic assigned to the general tab's new profile button is active even when the script editor has focus, so the 'n' key isn't passed to the editor at all. It doesn't trigger the button either, it seems to just disappear.

More information and several potential solutions are laid out in the issue, but the one implemented in this small patch simply disables the mnemonic on the button if the Script Editor tab is selected, and restores it once it's un-selected.

Tested under Gentoo Linux / Mono 6.12.0.122 and Windows 10, everything seems happy now.

It doesn't actually fix the problem, but it does make things work again.

dtcooper commented 1 year ago

Heya @markdwags, I think merging this will fix our issues on Linux. Cheers!