mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-02-18 07:32:30 +00:00
Remove paste event (#6)
Paste event is superseded by `machine.getClipboard`
This commit is contained in:
parent
03e0992328
commit
dee550b28d
1 changed files with 0 additions and 13 deletions
|
@ -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;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue