summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 12:34:29 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 15:01:13 +0300
commitf37308c5b89c24a63af7c0aa1194e10cea305653 (patch)
tree0578747c4ef1bb7c4c308796654efa4ef7f3e2ed /src/app.c
parent58b4bbc5e92d4eb64da507d44fe5bbc9f535eee5 (diff)
Mobile: Tablet tweaks
Heights of InputWidget vs. LabelWidget. The default sizes should be equal, e.g., so the navbar elements align properly. Don't set the input focus automatically when opening a dialog, since the keyboard may cover much of the UI.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index d259f541..3f0ec2c4 100644
--- a/src/app.c
+++ b/src/app.c
@@ -2153,7 +2153,7 @@ iBool handleCommand_App(const char *cmd) {
2153 iWidget *tabs = findWidget_App("doctabs"); 2153 iWidget *tabs = findWidget_App("doctabs");
2154#if defined (iPlatformAppleMobile) 2154#if defined (iPlatformAppleMobile)
2155 /* Can't close the last on mobile. */ 2155 /* Can't close the last on mobile. */
2156 if (tabCount_Widget(tabs) == 1) { 2156 if (tabCount_Widget(tabs) == 1 && numRoots_Window(get_Window()) == 1) {
2157 postCommand_App("navigate.home"); 2157 postCommand_App("navigate.home");
2158 return iTrue; 2158 return iTrue;
2159 } 2159 }
@@ -2331,7 +2331,9 @@ iBool handleCommand_App(const char *cmd) {
2331 bookmarkTitle_DocumentWidget(doc), 2331 bookmarkTitle_DocumentWidget(doc),
2332 siteIcon_GmDocument(document_DocumentWidget(doc))); 2332 siteIcon_GmDocument(document_DocumentWidget(doc)));
2333 } 2333 }
2334 postCommand_App("focus.set id:bmed.title"); 2334 if (deviceType_App() == desktop_AppDeviceType) {
2335 postCommand_App("focus.set id:bmed.title");
2336 }
2335 return iTrue; 2337 return iTrue;
2336 } 2338 }
2337 else if (equal_Command(cmd, "feeds.subscribe")) { 2339 else if (equal_Command(cmd, "feeds.subscribe")) {