01-13-2023, 02:53 AM
In regard to the F5 issue, I've also noticed that
Personally I don't think I like that behavior, and also it doesn't match what you'd expect or the other platforms (In particular it means whatever you type will end up as input to something else afterward, since we don't actually read the key in). I'd rather it just wait for the full keypress before ending the program, it would make it much harder to close by accident.
End(and some other functions) on Windows only require a KeyDown event on the console, not a full keypress. That's why the program ends when you're holding down F5, even though you pressed the F5 key while focused on QB64 the console still receives a F5 KeyDown when it goes in focus.
Personally I don't think I like that behavior, and also it doesn't match what you'd expect or the other platforms (In particular it means whatever you type will end up as input to something else afterward, since we don't actually read the key in). I'd rather it just wait for the full keypress before ending the program, it would make it much harder to close by accident.