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؟

ومع ذلك… هناك حل بديل سهل… اضغط على ؟

3 إعجابات