Disable the mysterious keypress throttling that overrides your operating system's...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 18 Aug 2009 23:55:37 +0000 (23:55 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 18 Aug 2009 23:55:37 +0000 (23:55 +0000)
The throttle didn't work prior to r55064, which was just fine since it makes your system behave more slowly for no apparent reason. :)

includes/DefaultSettings.php
skins/common/mwsuggest.js

index 8c99e0c..2c8e670 100644 (file)
@@ -1588,7 +1588,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches do not keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '236';
+$wgStyleVersion = '237';
 
 
 # Server-side caching:
index d02c495..77792b0 100644 (file)
@@ -13,7 +13,6 @@ var os_map = {};
 var os_cache = {};
 // global variables for suggest_keypress
 var os_cur_keypressed = 0;
-var os_last_keypress = 0;
 var os_keypressed_count = 0;
 // type: Timer
 var os_timer = null;
@@ -553,7 +552,6 @@ function os_eventKeyup(e){
        if(r == null)
                return; // not our event
 
-       os_last_keypress = 0;
        // some browsers won't generate keypressed for arrow keys, catch it
        if(os_keypressed_count == 0){
                os_processKey(r,os_cur_keypressed,targ);
@@ -593,14 +591,6 @@ function os_eventKeypress(e){
                return; // not our event
 
        var keypressed = os_cur_keypressed;
-       if(keypressed == 38 || keypressed == 40){
-               var d = new Date()
-               var now = d.getTime();
-               if(now - os_last_keypress < 120){
-                       return;
-               }
-               os_last_keypress = now;
-       }
 
        os_keypressed_count++;
        os_processKey(r,keypressed,targ);