diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-18 12:34:29 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-18 15:01:13 +0300 |
commit | f37308c5b89c24a63af7c0aa1194e10cea305653 (patch) | |
tree | 0578747c4ef1bb7c4c308796654efa4ef7f3e2ed /src/app.c | |
parent | 58b4bbc5e92d4eb64da507d44fe5bbc9f535eee5 (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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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")) { |