久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <legend id='j0VdA'><style id='j0VdA'><dir id='j0VdA'><q id='j0VdA'></q></dir></style></legend>

      <small id='j0VdA'></small><noframes id='j0VdA'>

      • <bdo id='j0VdA'></bdo><ul id='j0VdA'></ul>
      <tfoot id='j0VdA'></tfoot>
      <i id='j0VdA'><tr id='j0VdA'><dt id='j0VdA'><q id='j0VdA'><span id='j0VdA'><b id='j0VdA'><form id='j0VdA'><ins id='j0VdA'></ins><ul id='j0VdA'></ul><sub id='j0VdA'></sub></form><legend id='j0VdA'></legend><bdo id='j0VdA'><pre id='j0VdA'><center id='j0VdA'></center></pre></bdo></b><th id='j0VdA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='j0VdA'><tfoot id='j0VdA'></tfoot><dl id='j0VdA'><fieldset id='j0VdA'></fieldset></dl></div>

        檢查一個(gè)鍵是否已關(guān)閉?

        Check if a key is down?(檢查一個(gè)鍵是否已關(guān)閉?)

          <tfoot id='vjpXt'></tfoot>

        • <i id='vjpXt'><tr id='vjpXt'><dt id='vjpXt'><q id='vjpXt'><span id='vjpXt'><b id='vjpXt'><form id='vjpXt'><ins id='vjpXt'></ins><ul id='vjpXt'></ul><sub id='vjpXt'></sub></form><legend id='vjpXt'></legend><bdo id='vjpXt'><pre id='vjpXt'><center id='vjpXt'></center></pre></bdo></b><th id='vjpXt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vjpXt'><tfoot id='vjpXt'></tfoot><dl id='vjpXt'><fieldset id='vjpXt'></fieldset></dl></div>

            <tbody id='vjpXt'></tbody>

          <small id='vjpXt'></small><noframes id='vjpXt'>

            <bdo id='vjpXt'></bdo><ul id='vjpXt'></ul>
            <legend id='vjpXt'><style id='vjpXt'><dir id='vjpXt'><q id='vjpXt'></q></dir></style></legend>
                  本文介紹了檢查一個(gè)鍵是否已關(guān)閉?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  有沒(méi)有辦法檢測(cè)一個(gè)鍵當(dāng)前是否在 JavaScript 中被關(guān)閉?

                  Is there a way to detect if a key is currently down in JavaScript?

                  我知道keydown"事件,但這不是我需要的.按鍵被按下后的一段時(shí)間,我希望能夠檢測(cè)它是否仍然被按下.

                  I know about the "keydown" event, but that's not what I need. Some time AFTER the key is pressed, I want to be able to detect if it is still pressed down.

                  P.S. 最大的問(wèn)題似乎是在一段時(shí)間后鍵開(kāi)始重復(fù),像惡魔一樣觸發(fā) keydown 和 keyup 事件.希望只有一個(gè)簡(jiǎn)單的 isKeyDown(key) 函數(shù),但如果沒(méi)有,則需要克服/解決這個(gè)問(wèn)題.

                  P. S. The biggest issue seems to be that after some period of time the key begins to repeat, firing off keydown and keyup events like a fiend. Hopefully there is just a simple isKeyDown(key) function, but if not then this issue will need to be overcome / worked around.

                  推薦答案

                  有沒(méi)有辦法檢測(cè)一個(gè)鍵當(dāng)前是否在 JavaScript 中被關(guān)閉?

                  Is there a way to detect if a key is currently down in JavaScript?

                  不.唯一的可能是監(jiān)控每個(gè) keyupkeydown 并記住.

                  Nope. The only possibility is monitoring each keyup and keydown and remembering.

                  一段時(shí)間后,按鍵開(kāi)始重復(fù),像惡魔一樣觸發(fā) keydown 和 keyup 事件.

                  after some period of time the key begins to repeat, firing off keydown and keyup events like a fiend.

                  不應(yīng)該.你肯定會(huì)得到 keypress 重復(fù),并且在許多瀏覽器中你也會(huì)得到重復(fù) keydown,但是如果 keyup 重復(fù),這是一個(gè)錯(cuò)誤.

                  It shouldn't. You'll definitely get keypress repeating, and in many browsers you'll also get repeated keydown, but if keyup repeats, it's a bug.

                  不幸的是,這不是一個(gè)完全聞所未聞的錯(cuò)誤:在 Linux、Chromium 和 Firefox 上(當(dāng)它在 GTK+ 下運(yùn)行時(shí),它在流行的發(fā)行版中,如 Ubuntu)都生成重復(fù)的 keyup-keypress-keydown 序列握著鑰匙,這與快速敲擊鑰匙的人無(wú)法區(qū)分.

                  Unfortunately it is not a completely unheard-of bug: on Linux, Chromium, and Firefox (when it is being run under GTK+, which it is in popular distros such as Ubuntu) both generate repeating keyup-keypress-keydown sequences for held keys, which are impossible to distinguish from someone hammering the key really fast.

                  這篇關(guān)于檢查一個(gè)鍵是否已關(guān)閉?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項(xiàng)目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數(shù)據(jù)更新 Observable)
                  Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                  In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創(chuàng)建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動(dòng)態(tài)元素 - Angular 2 amp;離子2)

                  • <bdo id='WsAjA'></bdo><ul id='WsAjA'></ul>

                      <legend id='WsAjA'><style id='WsAjA'><dir id='WsAjA'><q id='WsAjA'></q></dir></style></legend>
                    1. <i id='WsAjA'><tr id='WsAjA'><dt id='WsAjA'><q id='WsAjA'><span id='WsAjA'><b id='WsAjA'><form id='WsAjA'><ins id='WsAjA'></ins><ul id='WsAjA'></ul><sub id='WsAjA'></sub></form><legend id='WsAjA'></legend><bdo id='WsAjA'><pre id='WsAjA'><center id='WsAjA'></center></pre></bdo></b><th id='WsAjA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WsAjA'><tfoot id='WsAjA'></tfoot><dl id='WsAjA'><fieldset id='WsAjA'></fieldset></dl></div>
                    2. <small id='WsAjA'></small><noframes id='WsAjA'>

                          <tfoot id='WsAjA'></tfoot>
                              <tbody id='WsAjA'></tbody>
                            主站蜘蛛池模板: 欧美日韩免费在线观看 | 成人免费网站黄 | 欧美日韩亚洲一区二区 | 欧美日韩第一区 | av毛片网站 | 日本va欧美va欧美va精品 | 国产欧美日韩在线视频 | 成人免费视频大全 | 亚洲三级在线 | 手机看片1024日韩 | 久久成人精品视频 | 亚洲不卡视频 | 青草av在线 | 日本少妇中文字幕 | 国产精品嫩草影院桃色 | 天天看天天干 | 福利一区福利二区 | 国产欧美日韩综合精品 | 一区二区三区久久 | 精品1区| 午夜激情网站 | 天天久久 | 国产午夜三级一区二区三 | 午夜免费时刻 | 久久人人视频 | 欧美精品亚洲精品 | 国产精品久久久久久久久借妻 | 一级片在线播放 | 性生活视频网站 | 国产黄网| 日本伊人网 | 欧美成视频 | 国产伦精品 | 黄色综合网 | 久操福利 | 久久视频一区 | 国产精品一级二级三级 | 欧美在线视频观看 | 国产在线观看不卡 | 国产一区二区在线播放 | www亚洲天堂 |