diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-06 08:28:58 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-06 08:28:58 +0200 |
commit | a73b54d8ab2164984c884caafb2e8f53d6557133 (patch) | |
tree | 2f0b2ff5dda324a379c6f9b6e37a918cd9fc3a58 /src/ui/documentwidget.c | |
parent | 78dcb6d388155454cfd042072419eb03080ad57d (diff) |
Mobile: Widget interaction and appearance
Overflow-scrollable allows momentum scrolls. Adjusting fonts in phone sheets.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 0fa9b3f7..9b412783 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -2495,11 +2495,17 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2495 | (iMenuItem[]){ { "Copy", 0, 0, "copy" }, { "---", 0, 0, NULL } }, | 2495 | (iMenuItem[]){ { "Copy", 0, 0, "copy" }, { "---", 0, 0, NULL } }, |
2496 | 2); | 2496 | 2); |
2497 | } | 2497 | } |
2498 | if (deviceType_App() == desktop_AppDeviceType) { | ||
2499 | pushBackN_Array( | ||
2500 | &items, | ||
2501 | (iMenuItem[]){ | ||
2502 | { "Go Back", navigateBack_KeyShortcut, "navigate.back" }, | ||
2503 | { "Go Forward", navigateForward_KeyShortcut, "navigate.forward" } }, | ||
2504 | 2); | ||
2505 | } | ||
2498 | pushBackN_Array( | 2506 | pushBackN_Array( |
2499 | &items, | 2507 | &items, |
2500 | (iMenuItem[]){ | 2508 | (iMenuItem[]){ |
2501 | { "Go Back", navigateBack_KeyShortcut, "navigate.back" }, | ||
2502 | { "Go Forward", navigateForward_KeyShortcut, "navigate.forward" }, | ||
2503 | { upArrow_Icon " Go to Parent", navigateParent_KeyShortcut, "navigate.parent" }, | 2509 | { upArrow_Icon " Go to Parent", navigateParent_KeyShortcut, "navigate.parent" }, |
2504 | { upArrowBar_Icon " Go to Root", navigateRoot_KeyShortcut, "navigate.root" }, | 2510 | { upArrowBar_Icon " Go to Root", navigateRoot_KeyShortcut, "navigate.root" }, |
2505 | { "---", 0, 0, NULL }, | 2511 | { "---", 0, 0, NULL }, |
@@ -2512,7 +2518,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2512 | { book_Icon " Import Links as Bookmarks...", 0, 0, "bookmark.links confirm:1" }, | 2518 | { book_Icon " Import Links as Bookmarks...", 0, 0, "bookmark.links confirm:1" }, |
2513 | { "---", 0, 0, NULL }, | 2519 | { "---", 0, 0, NULL }, |
2514 | { "Copy Page URL", 0, 0, "document.copylink" } }, | 2520 | { "Copy Page URL", 0, 0, "document.copylink" } }, |
2515 | 13); | 2521 | 11); |
2516 | if (isEmpty_Range(&d->selectMark)) { | 2522 | if (isEmpty_Range(&d->selectMark)) { |
2517 | pushBackN_Array( | 2523 | pushBackN_Array( |
2518 | &items, | 2524 | &items, |