Skip to content

Commit 93fe4ca

Browse files
Daniel LangeDaniel Lange
authored andcommitted
Make a panel click abort the search function
1 parent c5343ae commit 93fe4ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

IncSet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue
246246
IncSet_deactivate(this, panel);
247247
doSearch = false;
248248
filterChanged = mode->isFilter;
249-
} else if (ch == 27) {
250-
/* Esc aborts */
249+
} else if (ch == 27 || ch == KEY_MOUSE || ch == KEY_RECLICK) {
250+
/* Esc or panel click aborts */
251251
if (this->history)
252252
History_resetPosition(this->history);
253253
if (mode->isFilter) {

0 commit comments

Comments
 (0)