Merge pull request #9582 from ChaoticMind/ctrl_backspace
Implement some keyboard hotkeys for chat (TextFieldWidget)
This commit is contained in:
@@ -382,6 +382,12 @@ namespace OpenRA.Platforms.Default
|
||||
return input.GetClipboardText();
|
||||
}
|
||||
|
||||
public bool SetClipboardText(string text)
|
||||
{
|
||||
VerifyThreadAffinity();
|
||||
return input.SetClipboardText(text);
|
||||
}
|
||||
|
||||
public IVertexBuffer<Vertex> CreateVertexBuffer(int size)
|
||||
{
|
||||
VerifyThreadAffinity();
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace OpenRA.Platforms.Default
|
||||
MouseButton lastButtonBits = (MouseButton)0;
|
||||
|
||||
public string GetClipboardText() { return SDL.SDL_GetClipboardText(); }
|
||||
public bool SetClipboardText(string text) { return SDL.SDL_SetClipboardText(text) == 0; }
|
||||
|
||||
static MouseButton MakeButton(byte b)
|
||||
{
|
||||
@@ -177,4 +178,4 @@ namespace OpenRA.Platforms.Default
|
||||
ErrorHandler.CheckGlError();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user