can not use Capital character to be hotkey
Opened this issue · 4 comments
Freed-Wu commented
let content = [ [' &A', 'echo 100' ], [' &2', 'echo 200' ], [' &3', 'echo 300' ], [' &4' ], [' &5', 'echo 500' ], ]
let opts = {'title': 'select one'}
call quickui#listbox#open(content, opts)
press A will not work.
and can user use as hotkeys?
skywind3000 commented
It is case insensitive.
Johnleegy commented
我遇到类似问题。当 & 在第一位时热键无效,我在 & 前面加上空格就可以使用热键了。只是 listbox 里发现此问题。虽然与此问题不同,但也不另开 issue 了,毕竟前面加个空格就可以解决。韦大有空看看是不是字符串分割的函数有疑似 bug。
Freed-Wu commented
我遇到类似问题。当 & 在第一位时热键无效,我在 & 前面加上空格就可以使用热键了。只是 listbox 里发现此问题。虽然与此问题不同,但也不另开 issue 了,毕竟前面加个空格就可以解决。韦大有空看看是不是字符串分割的函数有疑似 bug。
Is it #23?
Freed-Wu commented
It is case insensitive.
if it is case insensitive, the upper charater and lower character must have the same result. In fact, only lower charater can work. i dare to think if it can support <S-x>
,<C-x>
,<M-x>
and other special characters, the plugin will be better!