Open lorenzophys opened 2 years ago
Tab can get you out of the menu, but really enter should
Yep, tab
solved the problem. It's unintuitive since the arrows do the same thing, but not when you're inside the dropdown.
This behavior stems from the tview library, relevant code here: https://github.com/derailed/tview/blob/master/dropdown.go#L415. In essence Enter
, Down
, & normal chars open the dropdown - problematic when you expect Down
to navigate to a new field instead.
I've felt this was a little clunky & unintuitive before as well. Perhaps this issue would be better served under https://github.com/derailed/tview or the parent project https://github.com/rivo/tview.
@lorenzophys @caproven @pcmorrison Thank you all for piping in! I see your point and could probably address it in the fork. But this is really old school form navigation ie tab/backtab to move around form fields. So is it something we should compensate for and upgrade or can this behavior be learned??
I've adapted, and the behavior is consistent across tview applications so I think it is fine. Leaving it to @lorenzophys to give input as they opened this issue.
Maybe a note saying '\<tab> to select' at the bottom of the menu?
@derailed I can easily get used to it, but if there was a note somewhere, as @pcmorrison suggested, it would probably save time to the next confused person.
Describe the bug I want to delete my
Deployment
withPropagation: Orphan
, but if I try to interact with the dropdown menu of the deletion popup, I get stuck in the dropdown and there's no way of confirming the deletion: theEnter
and the arrows just open the dropdown again. This happens also with deletion of singlePods
,ReplicaSet
, etc...To Reproduce
Deployment
kubectl create -f dummy-deployment.yml
dummy-deployment
in k9sctrl+d
Propagation
dropdown and pressEnter
Expected behavior After selecting the propagation method I expect to be able to move around the deletion popup and confirm the deletion of the
Deployment
Versions (please complete the following information):
OS:
K9s:
K8s:
1.21
onEKS