From 780f4c82e0e78b1c3cc688b382f02fa6608b8e63 Mon Sep 17 00:00:00 2001 From: Harald Schubert Date: Fri, 5 Jul 2013 17:56:02 +0200 Subject: [PATCH] SAPUI5: bug fixes (tab preserves todo changes, enter always finishes editing) --- .../architecture-examples/sapui5/js/todo/SmartTextField.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/labs/architecture-examples/sapui5/js/todo/SmartTextField.js b/labs/architecture-examples/sapui5/js/todo/SmartTextField.js index 6e4996e645..217b9dcfa7 100644 --- a/labs/architecture-examples/sapui5/js/todo/SmartTextField.js +++ b/labs/architecture-examples/sapui5/js/todo/SmartTextField.js @@ -48,6 +48,13 @@ } }, onfocusout: function (e) { + this.stopEditing(e); + }, + onsapenter: function (e) { + this.stopEditing(e); + }, + stopEditing: function (e) { + this._checkChange(e); if (this.getProperty('strongediting')) { if (!this.getEditable()) { return;