Fixes for #240 and #255

This commit is contained in:
c-spencer 2011-05-20 18:49:59 +01:00
commit cb9bdd120c
2 changed files with 10 additions and 4 deletions

View file

@ -38,6 +38,7 @@
define(function(require, exports, module) {
require("pilot/index");
require("pilot/fixoldbrowsers");
var catalog = require("pilot/plugin_manager").catalog;
catalog.registerPlugins([ "pilot/index" ]);

View file

@ -98,12 +98,17 @@ var TextInput = function(parentNode, host) {
host.onCompositionUpdate(text.value);
};
var onCompositionEnd = function() {
var onCompositionEnd = function(e) {
inCompostion = false;
host.onCompositionEnd();
setTimeout(function () {
sendText();
}, 0);
if (useragent.isGecko) {
sendText();
} else {
setTimeout(function () {
if (!inCompostion)
sendText();
}, 0);
}
};
var onCopy = function(e) {