Changed onEditorAction to support Next and Done button clicks