spell-cards.love/0008-teach_keychord_press

12 lines
276 B
Plaintext

teach_keychord_press = function(chord, key)
if chord == 'C-n' then
new_word()
elseif Cursor_word then
if chord == 'return' then
Cursor_word.contents = Cursor_word.lines[1].data
Cursor_word = nil
else
edit.keychord_press(Cursor_word, chord, key)
end
end
end