Fix #1236
gnunn1
6 years ago
707 | 707 | if (pdm.run() == ResponseType.APPLY) { |
708 | 708 | string password = pdm.password; |
709 | 709 | vte.feedChild(password, password.length); |
710 | static if (!USE_COMMIT_SYNCHRONIZATION) { | |
711 | if (isSynchronizedInput()) { | |
712 | SyncInputEvent se = SyncInputEvent(_terminalUUID, SyncInputEventType.INSERT_TEXT, null, password); | |
713 | onSyncInput.emit(this, se); | |
714 | } | |
715 | } | |
710 | 716 | } |
711 | 717 | } else { |
712 | 718 | showErrorDialog(cast(Window)getToplevel(), format(_("The library %s could not be loaded, password functionality is unavailable."), LIBRARY_SECRET), _("Library Not Loaded")); |
1334 | 1340 | text ~= '\n'; |
1335 | 1341 | } |
1336 | 1342 | vte.feedChild(text, text.length); |
1343 | static if (!USE_COMMIT_SYNCHRONIZATION) { | |
1344 | if (isSynchronizedInput()) { | |
1345 | SyncInputEvent se = SyncInputEvent(_terminalUUID, SyncInputEventType.INSERT_TEXT, null, text); | |
1346 | onSyncInput.emit(this, se); | |
1347 | } | |
1348 | } | |
1337 | 1349 | vte.grabFocus(); |
1338 | 1350 | } |
1339 | 1351 | } |