Hi there,
I’m on a laptop with touch capabilities. In the hamburger-menu, I don’t have the “shortcuts” link, because this one is displayed when
return !Discourse.Mobile.mobileView && !this.capabilities.touch;
But what if i’m on a laptop with touch capabilities and I want to display the desktop version, with shortcuts & everything ?
Thx
「いいね!」 1
sam
(Sam Saffron)
2
@zogstrip I thought you had a fix for this … no?
sam
(Sam Saffron)
4
Contribute > Feature に移動しました。JavaScript で実際にキーボードが接続されているかどうかを検出する方法があるかどうかはわかりません。ユーザーエージェントに依存するのは厄介です。
とはいえ、今後数年間で、キーボードとタッチの両方に対応する機能がますます増えると予想しています。
@codinghorror さん、非モバイルデバイスを使用している場合、ハンバーガーメニューにキーボードショートカットのリンクを無条件に表示すべきではないでしょうか?
とはいえ、簡単な回避策があります。\u003ckbd\u003e?\u003c/kbd\u003e を押してください。
「いいね!」 3