diff options
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
166 | 166 | ||
167 | void setFlags_Widget(iWidget *d, int64_t flags, iBool set) { | 167 | void setFlags_Widget(iWidget *d, int64_t flags, iBool set) { |
168 | if (d) { | 168 | if (d) { |
169 | if (deviceType_App() == phone_AppDeviceType) { | 169 | if (deviceType_App() != desktop_AppDeviceType) { |
170 | /* Phones rarely have keyboards attached so don't bother with the shortcuts. */ | 170 | /* TODO: Tablets should detect if a hardware keyboard is available. */ |
171 | flags &= ~drawKey_WidgetFlag; | 171 | flags &= ~drawKey_WidgetFlag; |
172 | } | 172 | } |
173 | iChangeFlags(d->flags, flags, set); | 173 | iChangeFlags(d->flags, flags, set); |