Actually, we should use text/plain rather than text/uri-list since we are already converting to filesystem paths
This commit is contained in:
parent
ab9a36f8c1
commit
372d2008a6
1 changed files with 1 additions and 1 deletions
|
|
@ -1164,7 +1164,7 @@ - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
|
|||
id obj = objs[i];
|
||||
if ([obj isKindOfClass:[NSURL class]]) {
|
||||
const char *path = [obj fileSystemRepresentation];
|
||||
_glfwInputDrop(window, "text/uri-list", path, strlen(path));
|
||||
_glfwInputDrop(window, "text/plain;charset=utf-8", path, strlen(path));
|
||||
} else if ([obj isKindOfClass:[NSString class]]) {
|
||||
const char *text = [obj UTF8String];
|
||||
_glfwInputDrop(window, "text/plain;charset=utf-8", text, strlen(text));
|
||||
|
|
|
|||
Loading…
Reference in a new issue