Mobile view with touch capabilities on laptop

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

@zogstrip I thought you had a fix for this … no?

Nope, it was only for the “grippie” on the composer.

https://github.com/discourse/discourse/commit/ef0804fbb02dfeaa3257ee3f2c290227aa2585a5

「いいね!」 1

Contribute > Feature に移動しました。JavaScript で実際にキーボードが接続されているかどうかを検出する方法があるかどうかはわかりません。ユーザーエージェントに依存するのは厄介です。

とはいえ、今後数年間で、キーボードとタッチの両方に対応する機能がますます増えると予想しています。

@codinghorror さん、非モバイルデバイスを使用している場合、ハンバーガーメニューにキーボードショートカットのリンクを無条件に表示すべきではないでしょうか?

とはいえ、簡単な回避策があります。\u003ckbd\u003e?\u003c/kbd\u003e を押してください。

「いいね!」 3