From: Brion Vibber Date: Tue, 18 Aug 2009 23:55:37 +0000 (+0000) Subject: Disable the mysterious keypress throttling that overrides your operating system's... X-Git-Tag: 1.31.0-rc.0~40224 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=5aeab0975d8c77afb694ec4b752860a568d983cc;p=lhc%2Fweb%2Fwiklou.git 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. :) --- 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);