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 Mi Piace

@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 Mi Piace

Sposto questo in Contribute > Feature… Non sono sicuro che esista un modo per rilevare realmente se è collegata una tastiera in JavaScript. Fare affidamento sull’user agent qui è complicato.

Detto questo, nei prossimi anni prevedo che sempre più cose saranno gestite tramite tastiera e tocco.

Mi chiedo se dovremmo mostrare incondizionatamente il link alle scorciatoie da tastiera nel menu hamburger se si dispone di un dispositivo non mobile @codinghorror?

Detto questo… una semplice soluzione alternativa… premi ?

3 Mi Piace