shithub: alienpatch

Download patch

ref: ba93922b65693ef44bcee2b7570876e3afd74424
parent: 558ab4e9b253235ae06f79fdb62c85ac8287c4de
author: qwx <qwx@sciops.net>
date: Tue Nov 8 02:28:26 EST 2022

ft2: disable french keyboard hack screwing up mod state for everyone

--- a/ft2-clone-midi
+++ b/ft2-clone-midi
@@ -173,6 +173,18 @@
 +rtmidi_in_ignore_types(RtMidiInPtr, bool, bool, bool)
 +{
 +}
+--- a/src/ft2_edit.c
++++ b/src/ft2_edit.c
+@@ -610,7 +610,8 @@
+ 	const bool frKeybHack = keyb.leftShiftPressed && !keyb.leftAltPressed && !keyb.leftCtrlPressed &&
+ 	               (scancode >= SDL_SCANCODE_1) && (scancode <= SDL_SCANCODE_0);
+ 
+-	if (frKeybHack || !keyb.keyModifierDown)
++//	if (frKeybHack || !keyb.keyModifierDown)
++	if (!keyb.keyModifierDown)
+ 		return (testEditKeys(scancode, keycode));
+ 
+ 	return false;
 --- a/mkfile.plan9
 +++ b/mkfile.plan9
 @@ -2,7 +2,7 @@