fixed text event handling for newer SDL versions (again)