summaryrefslogtreecommitdiff
path: root/src/static/js/pad.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/pad.js')
-rw-r--r--src/static/js/pad.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index a22e181a..b7fe9c3d 100644
--- a/src/static/js/pad.js
+++ b/src/static/js/pad.js
@@ -50,6 +50,22 @@ var randomString = require('./pad_utils').randomString;
var hooks = require('./pluginfw/hooks');
+window.inInternationalComposition = false;
+var inInternationalComposition = window.inInternationalComposition;
+
+window.handleCompositionEvent = function handleCompositionEvent(evt)
+ {
+ // international input events, fired in FF3, at least; allow e.g. Japanese input
+ if (evt.type == "compositionstart")
+ {
+ this.inInternationalComposition = true;
+ }
+ else if (evt.type == "compositionend")
+ {
+ this.inInternationalComposition = false;
+ }
+ }
+
function createCookie(name, value, days, path)
{
if (days)