You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Krom backend for Kha, "null" is written (as a string) into the clipboard when the cut/copy callbacks are null (which is the default value). Instead, nothing should happen, the current clipboard value should remain.
I tried to localize the problem but I couldn't solve it.
I assumed that some code in Kore or Kinc was wrong and did not handle a null value, but running the VS debugger showed that the JSValueRef arguments of krom_set_cut_copy_paste_callback() are not null, although JSValueRef can hold a null value according to the documentation.
So I tried changing the types of [cut/copy]Listener in System.hx from Void -> String to Null<Void -> String> (also in the definition of notifyOnCutCopyPaste() and in Krom.hx) because compiling with @:nullSafety(Strict) led to warnings.
This had no success, only the warnings are gone now.
The text was updated successfully, but these errors were encountered:
When using the Krom backend for Kha, "null" is written (as a string) into the clipboard when the cut/copy callbacks are
null
(which is the default value). Instead, nothing should happen, the current clipboard value should remain.I tried to localize the problem but I couldn't solve it.
I assumed that some code in Kore or Kinc was wrong and did not handle a
null
value, but running the VS debugger showed that theJSValueRef
arguments ofkrom_set_cut_copy_paste_callback()
are notnull
, although JSValueRef can hold anull
value according to the documentation.So I tried changing the types of
[cut/copy]Listener
in System.hx fromVoid -> String
toNull<Void -> String>
(also in the definition ofnotifyOnCutCopyPaste()
and in Krom.hx) because compiling with@:nullSafety(Strict)
led to warnings.This had no success, only the warnings are gone now.
The text was updated successfully, but these errors were encountered: