Skip to content

Instantly share code, notes, and snippets.

@teramako
Created October 16, 2012 01:29
Show Gist options
  • Save teramako/3896774 to your computer and use it in GitHub Desktop.
Save teramako/3896774 to your computer and use it in GitHub Desktop.
Source-Editor(Scratchpad, Stylish等のエディタ)のOrionで日本語入力ができなくなった件のメモ

Source-Editor(Scratchpad, Stylish等のエディタ)のOrionで日本語入力ができなくなった件

  1. 630810 – Should convert from native keycode to DOM keycode for every keys on Windows が mozilla-15 に対してコミットされる
  2. 772073 – Can't input Chinese in scratchpad にて中国語が入力できないというリグレッションが登録される

変更内容

  • UA が Firefox かつ Windows でないならイベントハンドリングしていた
  • つまり、Windowsの場合はハンドリングしていなかった
  • これを Windows でない、または、バージョン15以上なら、と変更し、OSに限らずハンドリング
diff -r 6f5db307770c browser/devtools/sourceeditor/orion/orion.js
--- a/browser/devtools/sourceeditor/orion/orion.js Thu Oct 04 18:56:22 2012 +0900
+++ b/browser/devtools/sourceeditor/orion/orion.js Sat Oct 20 21:15:37 2012 +0900
@@ -8201,7 +8201,7 @@ define("orion/textview/textView", ['orio
var wheelEvent = isFirefox ? "DOMMouseScroll" : "mousewheel";
handlers.push({target: this._viewDiv, type: wheelEvent, handler: function(e) { return self._handleMouseWheel(e); }});
}
- if (isFirefox && !isWindows) {
+ if (isFirefox && (!isWindows || isFirefox >= 15)) {
handlers.push({target: this._clientDiv, type: "DOMCharacterDataModified", handler: function (e) { return self._handleDataModified(e); }});
}
if (this._overlayDiv) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment