Closed Gajenthran closed 3 years ago
Thanks :smile:
I've tested the solution but unfortunately the QKeySequenceEdit is a bit inadequate :slightly_frowning_face:
Esc
, Tab
, Enter
) to navigate the widgets (e.g. Esc
close the editor)I've already implemented a solution using a custom widget that provide an alternative way to insert the mentioned keys, I'll push it when at home.
I saw it (I had a little problem with the List Layout but I saw the issue about that).
Some keys (or combinations) cannot be entered because are intercepted elsewhere (e.g. Esc , Tab , Enter) to navigate the widgets (e.g. Esc close the editor)
I forgot that point. Don't you think we should also do for Selection Mode ? For example if I had a new shortcut with UP arrow, it will allow my shortcut and the action for the selection Mode and will potentially create conflict.
I put some lines to avoid that kind of conflict in layout.py, you can check it if you want.
Instead of creating a new pull request, I put it in this. I add more features to shorten (editing and removing) in the list. I felt that it was not necessary to create new pull request because it's minor changement in the code.
Hope it will help you !
As I said on the title, I add shortcut for cues (issues #158 and #160) with
QKeySequenceEdit
. I have not changed a lot of things : I replace theQLineEdit
withQKeySequenceEdit
for the first column, to have a variety of commands. Then I modified a little bit thekey_pressed
function in keyboard.py to includeQKeySequence
.Hope it will help you !