diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-09 17:45:10 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-09 17:45:20 +0300 |
commit | d03b4bb3b567de4501915f4236280b33dc385103 (patch) | |
tree | 14717944d5d6e8c671827db0b365d14c71726596 /src | |
parent | 119c50cb5e220b30fdbb56a45ca12c8289f61d43 (diff) |
CertImportWidget: Respond to "input.paste"
The "input.paste" command is triggered via menus before CertImportWidget gets the key.
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/certimportwidget.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/certimportwidget.c b/src/ui/certimportwidget.c index e121b4d0..6e818137 100644 --- a/src/ui/certimportwidget.c +++ b/src/ui/certimportwidget.c | |||
@@ -215,6 +215,14 @@ static iBool processEvent_CertImportWidget_(iCertImportWidget *d, const SDL_Even | |||
215 | return iTrue; | 215 | return iTrue; |
216 | } | 216 | } |
217 | } | 217 | } |
218 | if (isCommand_UserEvent(ev, "input.paste")) { | ||
219 | if (!tryImportFromClipboard_CertImportWidget_(d)) { | ||
220 | makeSimpleMessage_Widget(uiTextCaution_ColorEscape "${heading.certimport.pasted}", | ||
221 | "${dlg.certimport.notfound}"); | ||
222 | } | ||
223 | postRefresh_App(); | ||
224 | return iTrue; | ||
225 | } | ||
218 | if (isCommand_UserEvent(ev, "certimport.paste")) { | 226 | if (isCommand_UserEvent(ev, "certimport.paste")) { |
219 | tryImportFromClipboard_CertImportWidget_(d); | 227 | tryImportFromClipboard_CertImportWidget_(d); |
220 | return iTrue; | 228 | return iTrue; |