diff --git a/autoload/scope/popup.vim b/autoload/scope/popup.vim index 16cc605..1789822 100644 --- a/autoload/scope/popup.vim +++ b/autoload/scope/popup.vim @@ -127,6 +127,12 @@ export class FilterMenu [128, 80, 83], [128, 80, 69], ] + var ignore_input_utf8_always = [ + # these sequences seem to be generated by desktops that switch-from + # or switch-to the workspace on which the vim instance is running + [128, 70, 66], + [128, 70, 65], + ] var ctrl_r_active = false this.idp = popup_create([$'{options.promptchar} '], @@ -229,6 +235,8 @@ export class FilterMenu if ln == getcurpos(id)[1] win_execute(id, "normal! G") endif + elseif ignore_input_utf8_always->index(str2list(key)) != -1 + # do nothing at all with this input type elseif ignore_input->index(key) == -1 && # ignoring double clicks, which are 6 char long: `<80> <80>.` strchars(key) != 6 &&