[Folder View] Accept and reject Escape event appropriately

Authored by broulik on Sep 6 2017, 8:51 AM.

Description

[Folder View] Accept and reject Escape event appropriately

When renaming, accept the Escape key event to prevent the containment from leaving Showing
Desktop mode. Otherwise don't accept it and let the containment do its thing.

BUG: 352988
FIXED-IN: 5.11.0

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