summaryrefslogtreecommitdiff
path: root/src/ui/uploadwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/uploadwidget.c')
-rw-r--r--src/ui/uploadwidget.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ui/uploadwidget.c b/src/ui/uploadwidget.c
index 89376633..ef407b6d 100644
--- a/src/ui/uploadwidget.c
+++ b/src/ui/uploadwidget.c
@@ -205,6 +205,15 @@ void init_UploadWidget(iUploadWidget *d) {
205 if (isPortraitPhone_App()) { 205 if (isPortraitPhone_App()) {
206 enableUploadButton_UploadWidget_(d, iFalse); 206 enableUploadButton_UploadWidget_(d, iFalse);
207 } 207 }
208 iWidget *title = findChild_Widget(w, "heading.upload.text");
209 iLabelWidget *menu = makeMenuButton_LabelWidget(midEllipsis_Icon, (iMenuItem[]){
210 { export_Icon " ${upload.text.export}", 0, 0, "upload.text.export" },
211 { "---" },
212 { delete_Icon " " uiTextCaution_ColorEscape "${menu.delete}", 0, 0, "upload.text.delete" }
213 }, 3);
214 setTextColor_LabelWidget(menu, uiTextAction_ColorId);
215 setFont_LabelWidget(menu, uiLabelBigBold_FontId);
216 addChildFlags_Widget(title, iClob(menu), frameless_WidgetFlag | moveToParentRightEdge_WidgetFlag);
208 } 217 }
209 else { 218 else {
210 useSheetStyle_Widget(w); 219 useSheetStyle_Widget(w);
@@ -410,8 +419,15 @@ static iBool processEvent_UploadWidget_(iUploadWidget *d, const SDL_Event *ev) {
410 } 419 }
411 else if (equal_Command(cmd, "panel.changed")) { 420 else if (equal_Command(cmd, "panel.changed")) {
412 showOrHideUploadButton_UploadWidget_(d); 421 showOrHideUploadButton_UploadWidget_(d);
422 setFocus_Widget(NULL);
413 return iFalse; 423 return iFalse;
414 } 424 }
425#if defined (iPlatformAppleMobile)
426 else if (deviceType_App() != desktop_AppDeviceType && equal_Command(cmd, "menu.opened")) {
427 setFocus_Widget(NULL); /* overlaid text fields! */
428 return iFalse;
429 }
430#endif
415 else if (equal_Command(cmd, "upload.cancel")) { 431 else if (equal_Command(cmd, "upload.cancel")) {
416 setupSheetTransition_Mobile(w, iFalse); 432 setupSheetTransition_Mobile(w, iFalse);
417 destroy_Widget(w); 433 destroy_Widget(w);