Remove paste event (#6)

Paste event is superseded by `machine.getClipboard`
This commit is contained in:
Apache 2023-02-18 13:15:57 -06:00 committed by GitHub
parent 03e0992328
commit dee550b28d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,19 +180,6 @@ internal class EventEmitter
if (e.Key == Keys.C) if (e.Key == Keys.C)
_runtime.QueueEvent("interrupt", LK => 0); _runtime.QueueEvent("interrupt", LK => 0);
} }
else if (e.Key == Keys.V)
{
if (SDL.HasClipboardText())
{
var text = SDL.GetClipboardText();
_runtime.QueueEvent("paste", LK =>
{
LK.PushString(text);
return 1;
});
}
}
} }
} }