summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-04 19:30:36 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-04 19:30:36 +0300
commitc3e5a0c2d4168515804dc0823c93d0522982108c (patch)
tree5d509273b148f16b4b674825c2eecaba25ade2d2 /src/ui/documentwidget.c
parent5c23b5805a25b815458809eab74e47776c3f47ce (diff)
iOS: Minor fixes
The SDL text input rectangle function applies some sort of offset that is inappropriate on iOS.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 76e843d5..e280bc84 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -3676,10 +3676,16 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
3676 { "---", 0, 0, NULL }, 3676 { "---", 0, 0, NULL },
3677 { book_Icon " ${menu.page.import}", 0, 0, "bookmark.links confirm:1" }, 3677 { book_Icon " ${menu.page.import}", 0, 0, "bookmark.links confirm:1" },
3678 { globe_Icon " ${menu.page.translate}", 0, 0, "document.translate" }, 3678 { globe_Icon " ${menu.page.translate}", 0, 0, "document.translate" },
3679#if defined (iPlatformMobile)
3680 { "---", 0, 0, NULL },
3681 { "${menu.page.copyurl}", 0, 0, "document.copylink" } },
3682 14);
3683#else
3679 { upload_Icon " ${menu.page.upload}", 0, 0, "document.upload" }, 3684 { upload_Icon " ${menu.page.upload}", 0, 0, "document.upload" },
3680 { "---", 0, 0, NULL }, 3685 { "---", 0, 0, NULL },
3681 { "${menu.page.copyurl}", 0, 0, "document.copylink" } }, 3686 { "${menu.page.copyurl}", 0, 0, "document.copylink" } },
3682 15); 3687 15);
3688#endif
3683 if (isEmpty_Range(&d->selectMark)) { 3689 if (isEmpty_Range(&d->selectMark)) {
3684 pushBackN_Array( 3690 pushBackN_Array(
3685 &items, 3691 &items,