Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1.             if (e.Key == Keycode.V && (e.Modifiers.HasModifier(Modifiers.Ctrl)
  2.                 || (Platform.CurrentPlatform == PlatformType.OSX && e.Modifiers.HasModifier(Modifiers.Meta))))
  3.             {
  4.                 string cliptext = Game.Renderer.Device.GetClipboard();
  5.                 if (cliptext.Length > 0)
  6.                     using (System.IO.StringReader reader = new System.IO.StringReader(cliptext))
  7.                         HandleTextInput(reader.ReadLine().Trim());
  8.                 return true;
  9.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement