According to the wiki it's
Code: Select all
addon.KeyPress(key, mods, isRepeat)
Code: Select all
function widget:KeyPress(key, mods, isRepeat, label, unicode)
Moderator: Moderators
Code: Select all
addon.KeyPress(key, mods, isRepeat)
Code: Select all
function widget:KeyPress(key, mods, isRepeat, label, unicode)
TextInput has changed with 96+ (unicode arg is always 0) cause of SDL2 switch (not all text input is a keypress now).gajop wrote:Now the second (chili-like) version works for me on Linux (96), but doesn't seem to be working on Windows (96.0 and 96.0.1-412-g7c7d24c). (All this can cause issues with text input if unicode is missing)
Code: Select all
function widget:TextInput(utf8, ...)