Closed RavenMacDaddy closed 2 years ago
I didn't know it doesn't work, but it's probably bug in OpenTK library. It works good in C++ port which uses different library.
Found this in a thread and PR:
private void Keyboard_KeyDown(object sender, OpenTK.Input.KeyboardKeyEventArgs e)
{
if (e.Key == OpenTK.Input.Key.F4 && keys.Contains(Keys.LeftAlt))
{
window.Close();
return;
(I removed the RightAlt
code since AltGr is not the same thing as Alt - see PR for the full code.)
Would that work?
Probably yes, but as I said I'm not going to fix it, because it's 3rd party bug, this is only workaround and it's already working in C++ port.
Now I get it, C++ version will supersede OpenTK.
Yes, exactly.
Closing as fixed by C++.
Feature request: Allow the process to be killed by pressing ALT-F4