Closed
Bug 186549
Opened 22 years ago
Closed 20 years ago
add a pref. that allows different windows to retain their own input locale settings
Categories
(Core :: Internationalization, enhancement)
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: cstef, Assigned: masayuki)
References
Details
(Keywords: intl, Whiteboard: parity-ie)
Attachments
(1 file, 4 obsolete files)
4.93 KB,
patch
|
emaijala+moz
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
When working with a number of simultaneously opened Mozilla windows (for
example, composing mail message while looking for information in another page)
it would be useful each window to reatin its own input locale settings. When I
compose mail in russian and have to look into some web page, I have to switch
input locale to english to type in URL, and then to switch back to continue
writing. It would be useful that while composing mail in russian, when I switch
to another window (navigator), it has its own input locale (english or whatever
original locale it had).
Reproducible: Always
Steps to Reproduce:
1. Open two Mozilla windows
2. In window 1, switch input locale
3. Switch to another window
Actual Results:
In another window, switched locale is turned on.
Expected Results:
Another window has its own original input locale.
Comment 1•22 years ago
|
||
-> internationalization I guess
Assignee: asa → smontagu
Component: Browser-General → Internationalization
QA Contact: asa → ylong
Comment 3•21 years ago
|
||
This looks like a Windows issue, and not a Mozilla one. I think it is intended
behaviour. This bug should be marked INVALID.
Comment 4•21 years ago
|
||
I disagree. I guess it's a valid enhancement request (hey, you asked for it :-))
and I guess it's doable (but I don't know how :-)). However, I'm setting the
target to 'future' because we don't have any one to work on it at the moment.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Future
Reporter | ||
Comment 5•21 years ago
|
||
(In reply to comment #4)
> I disagree. I guess it's a valid enhancement request (hey, you asked for it :-))
> and I guess it's doable (but I don't know how :-)). However, I'm setting the
> target to 'future' because we don't have any one to work on it at the moment.
No, it was another Constantin - me who asked for it.
I do not agree that it is Windows issue - if you look at IE behaviour, it makes
it as I want - every window has its own setting.
For me, this feature is most annoying when I composing a message in Russian,
and need to look at some web page for reference - I open new window, and have to
switch to English to type URL. After I saw what I want I have to switch back to
Russian to continue typing message text.
Alike things sometimes happen with two browser windows - in one I type some text
in Russian (for example, search terms in Google), in another want to open custom
URL - the same switching.
Or switching to reading news - I press 'N' to look at next new message, but it
does not work because Russian is on, and Mozilla does not understand, that it is
the same key (this problem does not apply to keys with modifiers - everithing is
OK there).
Comment 6•21 years ago
|
||
Oops. Sorry for the mix-up. Anyway, I agree with you that it's doable and we
should do it. I wish I had more time to spend working on Mozilla.
Comment 8•21 years ago
|
||
(In reply to comment #5)
> I do not agree that it is Windows issue - if you look at IE behaviour, it makes
> it as I want - every window has its own setting.
There are some pluses and some minuses in this feature. I'd rather have it as it
is (the same locale for all windows).
As far as I can remember, Macs always have had the same locale for ALL
applications. Moreover, there was a big discussion about the Windows' behaviour
of having separate locales for each application.
FYI, Microsoft Word 2002 has the same locale for all windows.
Reporter | ||
Comment 9•21 years ago
|
||
(In reply to comment #8)
> There are some pluses and some minuses in this feature. I'd rather have it as
it > is (the same locale for all windows).
> As far as I can remember, Macs always have had the same locale for ALL
> applications. Moreover, there was a big discussion about the Windows' behaviour
> of having separate locales for each application.
>
> FYI, Microsoft Word 2002 has the same locale for all windows.
Well, there are pros and cons. But as for me, separate settings for different
windows are preferrable. Maybe that could be a feature which may be turned on by
a user pref, and the current behaviour will be the default.
I asked for it because I would like it to exist. If this feature may be switched
on and off - everybody can choose whatever he wants.
Updated•21 years ago
|
OS: Windows 2000 → Windows XP
Updated•20 years ago
|
Whiteboard: parity-ie
Updated•20 years ago
|
Summary: Different windows should retain its own input locale settings → add a pref. that allows different windows to retain their own input locale settings
Assignee | ||
Comment 10•20 years ago
|
||
We can get the keyboard layout by |GetKeyboardLayout| API.
But |SetKeyboardLayout| API does not exist.
I think that this bug cannot be fixed on Mozilla.
Because Mozilla has only one thread for UI.
(One thread has an active keyboard layout).
Assignee | ||
Comment 11•20 years ago
|
||
Sorry, it is existing. But the name is |ActivateKeyboardLayout|.
Assignee | ||
Comment 12•20 years ago
|
||
O.K. I created this patch.
This patch switch the keyboard layout by window.
My idea for pref name is...
"intl.keyboardlayout.switchbywindow"
Is it O.K.?
Assignee | ||
Comment 13•20 years ago
|
||
Attachment #165157 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #165174 -
Flags: review?(jshin)
Assignee | ||
Comment 14•20 years ago
|
||
Comment on attachment 165174 [details] [diff] [review]
Patch rv1.0
Oops..
Sorry, the patch has an performance issue.
Attachment #165174 -
Attachment is obsolete: true
Attachment #165174 -
Flags: review?(jshin)
Assignee | ||
Comment 15•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #165183 -
Flags: review?(jshin)
Assignee | ||
Comment 16•20 years ago
|
||
Comment on attachment 165183 [details] [diff] [review]
Patch rv1.1
I changed reviewer.
Becuase Jungshik is internationalization, but this patch is widget/windows.
Attachment #165183 -
Flags: review?(jshin) → review?(emaijala)
Comment 17•20 years ago
|
||
Comment on attachment 165183 [details] [diff] [review]
Patch rv1.1
I think you should read the pref at the same time config.trim_on_minimize is
read in the end of StandardWindowCreate. That would save you some code.
I'd suggest something like intl.keyboard.per_window_layout for the pref name.
Move the line
+pref("intl.keyboardlayout.switchbywindow", false);
to the first #ifdef XP_WIN block around line 1062.
Attachment #165183 -
Flags: review?(emaijala) → review-
Assignee | ||
Comment 18•20 years ago
|
||
Attachment #165183 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #165780 -
Flags: review?(emaijala)
Comment 19•20 years ago
|
||
Comment on attachment 165780 [details] [diff] [review]
Patch rv1.2
No need to do other changes in StandardWindowCreate than add the lines
+ PRBool switchKeyboardLayout;
+ if
(NS_SUCCEEDED(prefBranch->GetBoolPref("intl.keyboard.per_window_layout",
+ &switchKeyboardLayout)))
+ gSwitchKeyboardLayout = switchKeyboardLayout;
after the reading of trim_on_minimize. This way the pref is read exactly once
when the hidden window is created and gTrimOnMinimize == 2.
Attachment #165780 -
Flags: review?(emaijala) → review-
Assignee | ||
Comment 20•20 years ago
|
||
Attachment #165780 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #165864 -
Flags: review?(emaijala)
Updated•20 years ago
|
Attachment #165864 -
Flags: review?(emaijala) → review+
Assignee | ||
Updated•20 years ago
|
Attachment #165864 -
Flags: superreview?(bryner)
Assignee | ||
Comment 21•20 years ago
|
||
*** Bug 258924 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 22•20 years ago
|
||
Comment on attachment 165864 [details] [diff] [review]
Patch rv1.3
I change superreviewer to bzbarsky.
Because superreview? has been set a month before.
Attachment #165864 -
Flags: superreview?(bryner) → superreview?(bzbarsky)
Comment 23•20 years ago
|
||
Comment on attachment 165864 [details] [diff] [review]
Patch rv1.3
sr=bzbarsky
Attachment #165864 -
Flags: superreview?(bzbarsky) → superreview+
Assignee | ||
Comment 24•20 years ago
|
||
Ere:
Would you check-in the patch?
Updated•20 years ago
|
Assignee: smontagu → masayuki
Comment 25•20 years ago
|
||
Patch checked in to trunk.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•