Support hitting escape to cancel a selection combine operation

Fixes #1443
This commit is contained in:
Maxime Coste 2017-06-16 10:23:03 +01:00
parent 42f03fb71f
commit 42d7b66b92

View File

@ -1606,6 +1606,9 @@ void combine_selections(Context& context, SelectionList list, Func func)
on_next_key_with_autoinfo(context, KeymapMode::None,
[func, list](Key key, Context& context) mutable {
if (key == Key::Escape)
return;
const auto op = key_to_combine_op(key);
auto& sels = context.selections();
list.update();