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 вообще существует способ реально определить, подключена ли у вас клавиатура. Полагаться здесь на user-agent — дело рискованное.

Тем не менее, в ближайшие несколько лет я ожидаю, что всё больше и больше функций будут работать с клавиатурой и сенсорным вводом.

Интересно, стоит ли нам безоговорочно показывать ссылку на сочетания клавиш в гамбургер-меню, если у вас не мобильное устройство, @codinghorror?

Впрочем… есть простое решение… нажмите ?.

3 лайка