Skip to content

Commit

Permalink
fix oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
nyakowint committed Sep 22, 2023
1 parent 5ca8167 commit 21201ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions KeyboardOSC/ChatModeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ private static void ProcessKey(VirtualKeyCode key, KeyboardKey.VirtualKeyEventDa
return;
// copy + paste
case VirtualKeyCode.VK_C:
if (!isCtrlHeld) return;
if (!isCtrlHeld) break;
GUIUtility.systemCopyBuffer = _currentText;
return;
break;
case VirtualKeyCode.VK_V:
if (!isCtrlHeld) return;
if (!isCtrlHeld) break;
_currentText += GUIUtility.systemCopyBuffer;
UpdateChatText(_currentText);
return;
break;
}


Expand Down
3 changes: 0 additions & 3 deletions KeyboardOSC/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ public static void DoPatches()

public static bool KeyboardPatch(KeyboardKey.VirtualKeyEventData keyEventData)
{
Logger.LogWarning($"patch: {keyEventData.Sender.Label}");
Logger.LogWarning($"{keyEventData.Sender.SecondaryLabel}");
Logger.LogWarning($"{keyEventData.IsKeySticky}");
if (Plugin.IsChatModeActive) ChatModeManager.HandleKey(keyEventData);
return true;
}
Expand Down

0 comments on commit 21201ee

Please sign in to comment.