godot/platform
Daniel Ting 91f7af48eb
Fix opening URLS with special characters in macOS
The Online Tutorials section of InputMap in the editor's built-in
documentation viewer contains this link:

docs.godotengine.org/en/latest/tutorials/inputs/inputevent.html#inputmap

The macOS implementation for opening a link percent-encodes it before
sending it to the browser, resulting in a 404. This is to fix #13422
where filenames with special characters could not be opened in Finder.
However, this breaks URLS so I added a check to see if the resource
scheme is file:// and if so, only then is it escaped. This allows other
schemes like `http`, `ftp`, and `mailto` to be used.
2020-08-14 09:14:58 +03:00
..
android Update copyright statements to 2020 2020-08-13 22:58:13 +02:00
bb10 Update copyright statements to 2020 2020-08-13 22:58:13 +02:00
haiku Update copyright statements to 2020 2020-08-13 22:58:13 +02:00
iphone Update copyright statements to 2020 2020-08-13 22:58:13 +02:00
javascript Update copyright statements to 2020 2020-08-13 22:58:13 +02:00
osx Fix opening URLS with special characters in macOS 2020-08-14 09:14:58 +03:00
server Update copyright statements to 2020 2020-08-13 22:58:13 +02:00
windows Update copyright statements to 2020 2020-08-13 22:58:13 +02:00
winrt Update copyright statements to 2020 2020-08-13 22:58:13 +02:00
x11 Update copyright statements to 2020 2020-08-13 22:58:13 +02:00