From 5aeab0975d8c77afb694ec4b752860a568d983cc Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 18 Aug 2009 23:55:37 +0000 Subject: [PATCH] Disable the mysterious keypress throttling that overrides your operating system's keypress throttling for the up and down arrow keys in mwsuggest drop down. 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 | 2 +- skins/common/mwsuggest.js | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 8c99e0c23a..2c8e670f4b 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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: diff --git a/skins/common/mwsuggest.js b/skins/common/mwsuggest.js index d02c4958f0..77792b0616 100644 --- a/skins/common/mwsuggest.js +++ b/skins/common/mwsuggest.js @@ -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); -- 2.20.1