mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Fix self drops on macOS
This commit is contained in:
parent
00e5472fd9
commit
3896846b63
1 changed files with 4 additions and 1 deletions
|
|
@ -4191,7 +4191,10 @@ void _glfwCocoaPostEmptyEvent(void) {
|
|||
NSEvent *currentEvent = [NSApp currentEvent];
|
||||
if (currentEvent && currentEvent.type == NSEventTypeKeyDown && currentEvent.keyCode == 53) {
|
||||
ev.type = GLFW_DRAG_CANCELLED;
|
||||
} else ev.type = GLFW_DRAG_DROPPED;
|
||||
} else {
|
||||
ev.type = GLFW_DRAG_DROPPED;
|
||||
ev.drop_maybe_a_cancel = true;
|
||||
}
|
||||
} break;
|
||||
default:
|
||||
ev.type = GLFW_DRAG_DROPPED; break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue