parent
6de1e4f5f5
commit
cb9bdd120c
2 changed files with 10 additions and 4 deletions
|
|
@ -38,6 +38,7 @@
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
|
|
||||||
require("pilot/index");
|
require("pilot/index");
|
||||||
|
require("pilot/fixoldbrowsers");
|
||||||
var catalog = require("pilot/plugin_manager").catalog;
|
var catalog = require("pilot/plugin_manager").catalog;
|
||||||
catalog.registerPlugins([ "pilot/index" ]);
|
catalog.registerPlugins([ "pilot/index" ]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,12 +98,17 @@ var TextInput = function(parentNode, host) {
|
||||||
host.onCompositionUpdate(text.value);
|
host.onCompositionUpdate(text.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
var onCompositionEnd = function() {
|
var onCompositionEnd = function(e) {
|
||||||
inCompostion = false;
|
inCompostion = false;
|
||||||
host.onCompositionEnd();
|
host.onCompositionEnd();
|
||||||
|
if (useragent.isGecko) {
|
||||||
|
sendText();
|
||||||
|
} else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
if (!inCompostion)
|
||||||
sendText();
|
sendText();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var onCopy = function(e) {
|
var onCopy = function(e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue