Support front ends that pass CR for [return], as well as those that pass NL.

This commit is contained in:
Michael Drake 2013-02-09 14:19:38 +00:00
parent eb1113e4c3
commit b4609f41bc

View File

@ -1718,6 +1718,7 @@ bool textarea_keypress(struct textarea *ta, uint32_t key)
redraw = true;
}
break;
case KEY_CR:
case KEY_NL:
if (readonly)
break;