From 87450fa36ba7a2cd50a990ed818814e0fe595ddc Mon Sep 17 00:00:00 2001 From: Simon Montagu Date: Wed, 6 Jul 2011 16:24:46 +0300 Subject: [PATCH] Force Scratchpad textbox to be LTR in all locales. Bug 668960, r=mihai.sucan --- browser/base/content/scratchpad.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser/base/content/scratchpad.js b/browser/base/content/scratchpad.js index abb932cd266..3a0b4816d0b 100644 --- a/browser/base/content/scratchpad.js +++ b/browser/base/content/scratchpad.js @@ -643,6 +643,9 @@ var Scratchpad = { this._tabCharacter = expandtab ? (new Array(tabsize + 1)).join(" ") : "\t"; this.textbox.style.MozTabSize = tabsize; + // Force LTR direction (otherwise the textbox inherits the locale direction) + this.textbox.style.direction = "ltr"; + this.insertIntro(); // Make the Tab key work.