return old tab logic; safer checks for AceEditor grab; escape on first row