teach_mouse_press = function(x,y, mouse_button, is_touch, presses) if on_new_word_button(x,y) then new_word() return end if on_word(x) then local idx = to_word_idx(y) if idx then Cursor_word = Words[idx] edit.mouse_press(Cursor_word, x,y, mouse_button, is_touch, presses) end elseif on_play(x) then play(to_word_idx(y)) elseif on_record(x) then record(to_word_idx(y)) end end