Can Firefox detect MetaKey?

后端 未结 2 1289
说谎
说谎 2021-01-26 15:39

I\'m working on a Firefox extension and struggle with the meta key (Windows key on my keyboard). KeyboardEvent.metaKey is supposed to detect it but alway

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-26 16:10

    Short answer No,

    Notice that the meta key on windows is nothing but the Windows Key windows key.

    As the time of this writing, Firefox 55 is released but it still can't detect the Windows Key button been pressed by returning false in the metaKey property. Because of a bug.

    I think you're better off using shiftKey which has a property with the same name on the event object.

提交回复
热议问题