When I hit the keyboard shortcut to gotoLine in vscode, it opens the drop down window. Once I type in the line number, I would like the keyboard shortcut that opened the gotoLine pallete, to also execute the gotoline and close the pallete.
For example I have tilde key mapped to gotoLine.
When I enter the line number, I would like it to behave such that when I hit tilde again, it acts as if I hit enter (not escape).
Is there a way I can do that with keymappings in vscode?