mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-18 21:55:45 +01:00
Tweak to trap getClipboard properly
This commit is contained in:
parent
59aa0586f7
commit
f334272243
|
|
@ -275,7 +275,7 @@ public final class Sys {
|
|||
try {
|
||||
PlatformAdapter adapter = (PlatformAdapter) Class.forName(PLATFORM).newInstance(); // This avoids a Jet error message
|
||||
return adapter.getClipboard();
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
Sys.log("Unable to get clipboard contents: " + e);
|
||||
// ignore exception and use native implementation
|
||||
return nGetClipboard();
|
||||
|
|
|
|||
Loading…
Reference in a new issue