From e0256c5b7c1e92db42cef1556eee849dff92c513 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 9 Apr 2021 13:33:21 +0300 Subject: Mobile: Hide shortcut keys On iPad, the platform convention is to show these in a popup anyway. --- src/ui/widget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/widget.c') diff --git a/src/ui/widget.c b/src/ui/widget.c index cef36a00..1ef2360c 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c @@ -166,8 +166,8 @@ int64_t flags_Widget(const iWidget *d) { void setFlags_Widget(iWidget *d, int64_t flags, iBool set) { if (d) { - if (deviceType_App() == phone_AppDeviceType) { - /* Phones rarely have keyboards attached so don't bother with the shortcuts. */ + if (deviceType_App() != desktop_AppDeviceType) { + /* TODO: Tablets should detect if a hardware keyboard is available. */ flags &= ~drawKey_WidgetFlag; } iChangeFlags(d->flags, flags, set); -- cgit v1.2.3