Bug 314250, modifier key mappings for scroll wheels are bad. New mappings on Mac: ctrl=size, option=history, meta=line. r=beltzner r=mano

This commit is contained in:
mark%moxienet.com 2005-11-17 18:50:50 +00:00
Родитель ce7fc555c4
Коммит 369df4b940
2 изменённых файлов: 25 добавлений и 11 удалений

Просмотреть файл

@ -321,18 +321,29 @@ pref("intl.menuitems.insertseparatorbeforeaccesskeys","chrome://global/locale/in
// On OS X, if the wheel has one axis only, shift+wheel comes through as a // On OS X, if the wheel has one axis only, shift+wheel comes through as a
// horizontal scroll event. Thus, we can't assign anything other than normal // horizontal scroll event. Thus, we can't assign anything other than normal
// scrolling to shift+wheel. // scrolling to shift+wheel.
pref("mousewheel.withmetakey.action",3); pref("mousewheel.withshiftkey.action",0);
pref("mousewheel.withshiftkey.sysnumlines",true);
pref("mousewheel.withshiftkey.numlines",1);
pref("mousewheel.withaltkey.action",2);
pref("mousewheel.withaltkey.sysnumlines",false);
pref("mousewheel.withaltkey.numlines",1);
pref("mousewheel.withmetakey.action",0);
pref("mousewheel.withmetakey.sysnumlines",false); pref("mousewheel.withmetakey.sysnumlines",false);
pref("mousewheel.withcontrolkey.action",2); pref("mousewheel.withmetakey.numlines",1);
pref("mousewheel.withcontrolkey.sysnumlines",false);
#else #else
pref("mousewheel.withcontrolkey.action",3);
pref("mousewheel.withcontrolkey.sysnumlines",false);
pref("mousewheel.withshiftkey.action",2); pref("mousewheel.withshiftkey.action",2);
pref("mousewheel.withshiftkey.sysnumlines",false); pref("mousewheel.withshiftkey.sysnumlines",false);
#endif pref("mousewheel.withshiftkey.numlines",1);
pref("mousewheel.withaltkey.action",0); pref("mousewheel.withaltkey.action",0);
pref("mousewheel.withaltkey.sysnumlines",false); pref("mousewheel.withaltkey.sysnumlines",false);
pref("mousewheel.withaltkey.numlines",1);
pref("mousewheel.withmetakey.action",0);
pref("mousewheel.withmetakey.sysnumlines",true);
pref("mousewheel.withmetakey.numlines",1);
#endif
pref("mousewheel.withcontrolkey.action",3);
pref("mousewheel.withcontrolkey.sysnumlines",false);
pref("mousewheel.withcontrolkey.numlines",1);
pref("profile.allow_automigration", false); // setting to false bypasses automigration in the profile code pref("profile.allow_automigration", false); // setting to false bypasses automigration in the profile code

Просмотреть файл

@ -34,7 +34,7 @@ Contributors:
<tr> <tr>
<td>Back</td> <td>Back</td>
<td> <td>
<span class="mac">&ctrlKey;+Scroll Down</span> <span class="mac">&altKey;+Scroll Down</span>
<span class="noMac">&shiftKey;+Scroll Down</span> <span class="noMac">&shiftKey;+Scroll Down</span>
</td> </td>
</tr> </tr>
@ -44,18 +44,18 @@ Contributors:
</tr> </tr>
<tr> <tr>
<td>Decrease Text Size</td> <td>Decrease Text Size</td>
<td>&accelKey;+Scroll up</td> <td>&ctrlKey;+Scroll up</td>
</tr> </tr>
<tr> <tr>
<td>Forward</td> <td>Forward</td>
<td> <td>
<span class="mac">&ctrlKey;+Scroll up</span> <span class="mac">&altKey;+Scroll up</span>
<span class="noMac">&shiftKey;+Scroll up</span> <span class="noMac">&shiftKey;+Scroll up</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Increase Text Size</td> <td>Increase Text Size</td>
<td>&accelKey;+Scroll down</td> <td>&ctrlKey;+Scroll down</td>
</tr> </tr>
<tr> <tr>
<td>New Tab</td> <td>New Tab</td>
@ -88,7 +88,10 @@ Contributors:
</tr> </tr>
<tr> <tr>
<td>Scroll line by line</td> <td>Scroll line by line</td>
<td>&altKey;+Scroll</td> <td>
<span class="mac">&accelKey;+Scroll</span>
<span class="noMac">&altKey;+Scroll</span>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>