Modified:
trunk/src/core.js
Log:
After a user has made a selection the state machine should reset back to
the start state so that future key presses are not processed as selection
events.
Modified: trunk/src/core.js
==============================================================================
--- trunk/src/core.js (original)
+++ trunk/src/core.js Thu Jan 8 15:44:08 2009
@@ -1028,6 +1028,7 @@
case "ENTERKEY-SHIFT":
// Create new topic if user is holding shift while hitting
enter
this.c.create_new(data.input);
+ this.sm.transition("start");
data.domEvent.preventDefault();
break;
case "ENTERKEY":
@@ -1069,6 +1070,7 @@
$(input).trigger("fb-select", [item.fb_data])
.trigger("suggest", [item.fb_data]); // legacy - for
compatibility
this.c.list_hide();
+ this.sm.transition("start");
break;
}
};