Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (e.Key == Keycode.V && (e.Modifiers.HasModifier(Modifiers.Ctrl)
- || (Platform.CurrentPlatform == PlatformType.OSX && e.Modifiers.HasModifier(Modifiers.Meta))))
- {
- string cliptext = Game.Renderer.Device.GetClipboard();
- if (cliptext.Length > 0)
- using (System.IO.StringReader reader = new System.IO.StringReader(cliptext))
- HandleTextInput(reader.ReadLine().Trim());
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement