Skip to content

Commit

Permalink
X.Prompt: handle Return key in vim normal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
l29ah committed Dec 19, 2023
1 parent 3613d4d commit 6b42c73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XMonad/Prompt.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,8 @@ vimLikeXPKeymap' fromColor promptF pasteFilter notWord = M.fromList $
, (xK_c, promptSubmap (setModeDone True) changeVimXPKeymap
>> setModeDone True
)
, (xK_Return, acceptSelection)
, (xK_KP_Enter, acceptSelection)
] ++
map (first $ (,) shiftMask)
[ (xK_dollar, endOfLine >> moveCursor Prev)
Expand Down

0 comments on commit 6b42c73

Please sign in to comment.