#375830 - Don't send SIGINT to terminal emulator unnecessarily

Authored by palant on Feb 13 2017, 8:29 PM.

Description

#375830 - Don't send SIGINT to terminal emulator unnecessarily

Summary: This leaves clearing current command line as default behavior which is sane. However, this change adds a parameter clearCommand to the sendInput() method to override this behavior. Inserting the file name and pasting are the scenarios where it is actually undesirable to clear the current command.

Test Plan: Inserting file name (Ctrl+Enter) shouldn't clear command line, both when the focus is inside the terminal and on the file list. Same should go for pasting text (Ctrl+V inside the terminal). The automatic cd command sent when current directory changes in the list should still clear command line (bug 328068 should not regress).

Reviewers: Krusader, abika, martinkostolny, asensi

Reviewed By: Krusader, abika, martinkostolny, asensi

Subscribers: asensi, martinkostolny, abika, Krusader

Tags: Krusader

Differential Revision: https://phabricator.kde.org/D4419

BUG: 375830

Details

Committed
Alexander Bikadorov <alex.bikadorov@kdemail.net>Feb 13 2017, 8:38 PM
Reviewer
Krusader
Parents
R167:b56a40421e24: #314258 - Duplicate tab settings when duplicating tabs
Branches
Unknown
Tags
Unknown
Alexander Bikadorov <alex.bikadorov@kdemail.net> committed R167:972a8501d834: #375830 - Don't send SIGINT to terminal emulator unnecessarily (authored by palant).Feb 13 2017, 8:38 PM