textField lastCharTyped oddity - Printable Version +- Hot Door CORE Forum (http://hotdoorcore.com/forum) +-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1) +--- Forum: Bugs (http://hotdoorcore.com/forum/forumdisplay.php?fid=5) +--- Thread: textField lastCharTyped oddity (/showthread.php?tid=262) |
textField lastCharTyped oddity - Rick Johnson - 12-29-2020 When a user enters a forward-delete into a text field, lastCharTyped under Windows returns a blank string, while on macOS it returns a "mystery" character whose length is 3 and the value of character 0 is -17. When a key is pressed that triggers a valueChangingCallback, should it always contain a value to evaluate? For now I just let null strings pass in the callback since getting char 0 crashes Windows. |