fix clipboard pasting on macOS

just checks for __APPLE__ definition and changes the mask accordingly
This commit is contained in:
Morc - Richard Gráčik authored and GitHub committed 2023-06-17 10:02:13 +02:00
1 parent 5b9a9bbc9a
commit a7b1523b45
1 file changed
+6
+6
View File
@@ -41,9 +41,15 @@ bool ChatInputText::ProcessKeyPress(GdkEventKey *event) {
return true;
}
#ifdef __APPLE__
if ((event->state & GDK_MOD2_MASK) && event->keyval == GDK_KEY_v) {
return CheckHandleClipboardPaste();
}
#else
if ((event->state & GDK_CONTROL_MASK) && event->keyval == GDK_KEY_v) {
return CheckHandleClipboardPaste();
}
#endif
if (event->keyval == GDK_KEY_Return) {
if (event->state & GDK_SHIFT_MASK)