clients: merge text-entry code to simple-tbm