In standalone mail window F6 generates error message in console
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
People
(Reporter: iannbugzilla, Assigned: khushil324)
Details
Attachments
(1 file, 3 obsolete files)
|
2.94 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
STR
1/ Open Thunderbird
2/ Open message in a standalone window
3/ Press F6
Expected result
1/ No error message in error console
Actual result
1/ Following message in error console:
ReferenceError: SwitchPaneFocus is not defined messageWindow.xul:1:1
SwitchPaneFocus function is in mail3PaneWindowCommands.js which is not loaded by messageWindow.xul whereas F6 key is defined in mainKeySet.inc.xul which is loaded by messageWindow.xul
Either F6 key definition should be moved to a location not loaded in messageWindow.xul or the function needs moving to somewhere that is loaded by messageWindow.xul. As far as I can see F6 serves no function in a standalone message window so I would say the former is a better option.
Comment 1•6 years ago
|
||
Khushil, is this something you could look into?
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #3)
::: mail/base/content/messenger.xul
@@ +230,5 @@<keyset id="mailKeys">
- <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/>
- <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control"/>
- <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="shift"/>
- <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);"/>
hmm, looks like we only ever look at shift (or not) -
https://searchfox.org/comm-central/rev/
9c5877d219fdda7f6ee2ed352973eb779496e272/mail/base/content/
mail3PaneWindowCommands.js#1444Maybe we can do with just the last one of these?
What happens with the first two removed and the user is holding down the control key?
Does that change the behaviour the user gets? I think at the moment we ignore the control key.
| Assignee | ||
Comment 5•6 years ago
|
||
(In reply to Ian Neal from comment #4)
What happens with the first two removed and the user is holding down the control key?
Does that change the behaviour the user gets? I think at the moment we ignore the control key.
Yes, we ignore the control key. Behaviour remains the same after removing the first two keys.
| Assignee | ||
Comment 6•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
| Assignee | ||
Comment 8•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
The same thing also happens with Control and Control+Shift TAB. Another patch on here or a new bug?
| Assignee | ||
Comment 10•6 years ago
|
||
Let me do it this patch only. We just need this shift this lines in messenger.xul: https://searchfox.org/comm-central/source/mail/base/content/mainKeySet.inc.xul#142-147
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 11•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/afee24ca2f11
Fix error message in console when using F6 in stand-alone mail window. r=mkmelin
Updated•6 years ago
|
Description
•