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

    1. <small id='PwARf'></small><noframes id='PwARf'>

        <tfoot id='PwARf'></tfoot>
          <bdo id='PwARf'></bdo><ul id='PwARf'></ul>

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

        javascript可以區分左右shift鍵嗎?

        Can javascript tell the difference between left and right shift key?(javascript可以區分左右shift鍵嗎?)

            <tfoot id='HDOc6'></tfoot>

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

                <tbody id='HDOc6'></tbody>
            • <legend id='HDOc6'><style id='HDOc6'><dir id='HDOc6'><q id='HDOc6'></q></dir></style></legend>

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

                  <bdo id='HDOc6'></bdo><ul id='HDOc6'></ul>
                • 本文介紹了javascript可以區分左右shift鍵嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  這主要是一個健全性檢查.兩個 shift 鍵的鍵碼都是 16.這是否意味著實際上無法在瀏覽器中區分左右 shift 事件?

                  Mostly this is a sanity check. The key code for both shift keys is 16. Does that mean it is actually impossible to distinguish a left and right shift events in a browser?

                  推薦答案

                  在支持 DOM3 的較新瀏覽器中,您可以使用 event.location 來檢查位置.

                  In newer browsers supporting DOM3 you can use event.location to check the location.

                  在 DOM3 規范中,為位置定義了 4 個常量,DOM_KEY_LOCATION_STANDARDDOM_KEY_LOCATION_LEFTDOM_KEY_LOCATION_RIGHTDOM_KEY_LOCATION_NUMPAD.

                  In the DOM3 spec, there are 4 constants defined for location, DOM_KEY_LOCATION_STANDARD, DOM_KEY_LOCATION_LEFT, DOM_KEY_LOCATION_RIGHT, andDOM_KEY_LOCATION_NUMPAD.

                  在這種情況下,你可以這樣做:

                  In this case, you can do:

                  if (event.location === KeyboardEvent.DOM_KEY_LOCATION_LEFT){
                  
                  } else if (event.location === KeyboardEvent.DOM_KEY_LOCATION_RIGHT){
                  
                  }
                  

                  這篇關于javascript可以區分左右shift鍵嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數據更新 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 中,如何創建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - Angular 2 amp;離子2)
                  • <bdo id='00xCL'></bdo><ul id='00xCL'></ul>

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

                        <small id='00xCL'></small><noframes id='00xCL'>

                              <tbody id='00xCL'></tbody>
                          1. <legend id='00xCL'><style id='00xCL'><dir id='00xCL'><q id='00xCL'></q></dir></style></legend>
                            <tfoot id='00xCL'></tfoot>
                          2. 主站蜘蛛池模板: 亚洲精品一区二区在线观看 | 天堂一区在线观看 | 亚洲精品视频三区 | 91精品国产91久久久久久三级 | 国产亚洲精品久久久久久牛牛 | 91精品国产综合久久福利软件 | 精品视频一区二区在线观看 | 国产视频亚洲视频 | 天天天久久久 | 五月婷婷丁香婷婷 | 在线观看国产视频 | 午夜免费观看网站 | 在线看av网址 | 国内毛片毛片毛片毛片 | 在线观看中文字幕av | 天天躁日日躁狠狠的躁天龙影院 | 亚洲精品一区二区另类图片 | 久久精品色欧美aⅴ一区二区 | 日韩中文在线观看 | 999久久久久久久久 国产欧美在线观看 | 色桃网 | 精品亚洲一区二区三区四区五区高 | 中文字幕免费观看 | 久久久国产精品视频 | 综合色播 | 天堂在线www| xxx.在线观看 | 福利一区在线观看 | 国产亚洲一级 | 一级免费毛片 | 日韩免费网 | 午夜影院在线观看视频 | 视频一二三区 | 99热精品国产 | 亚洲毛片在线 | 成人h动漫精品一区二区器材 | 久久久久久综合 | 91精品国产综合久久久亚洲 | 中文字幕在线电影观看 | 国内自拍偷拍 | 日韩欧美大片 |