Closed dunric closed 7 months ago
I use emacsLikeXPKeymap
here with git xmonad-contrib and the arrow keys work fine.
I use
emacsLikeXPKeymap
here with git xmonad-contrib and the arrow keys work fine.
Can you provide a minimal working example for shellPrompt
?
In my case arrow keys do not work even with default defaultXPKeymap. I invoke shellPrompt with M-Escape, type-in some chars like "abcd", then press Left key and it does not move cursor at all. Arrow/Home/End/Delete etc however do work normally in Xorg session and other X11 or GTK+ applications.
additional info:
GHC 9.6.3 Xorg X server 21.1.9
My keybinding is at https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L240 and myXPKeymap
is defined at https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L338-L341.
@geekosaur Thank you for the quick reply, however the same setup still does not make arrow keys work on my instance. I did even made a more reduced minimal example, where arrow keys do not work:
module Main (main) where
import XMonad
import XMonad.Prompt
import XMonad.Prompt.Shell
import XMonad.Util.EZConfig
main :: IO ()
main = xmonad $ def
{ modMask = mod4Mask
}
`additionalKeys`
[ ((mod4Mask, xK_p), shellPrompt def)
]
I do remember when about a several months ago I have been using XMonad, arrow keys did worked normally in XPrompt. Weird.
Interestingly, that reduced example does not work in my testbed.
@slotThe, any ideas? I think you touched this code last.
Whoops! This should be addressed by https://github.com/xmonad/xmonad-contrib/pull/850
Problem Description
When invoking shellPrompt dialog with
promptKeymap
config field set f.E. to emacsKeymap, all keys without a modifier(equal to 0) are ignored:Steps to Reproduce
myPromptTheme = def { promptKeymap = emacsLikeXPKeymap }
("M-<Escape>", shellPrompt myPromptTheme)
Configuration File
xmonad
version 0.17.2.9 (commit XXX if using git)xmonad-contrib
version git-20231011 (commit XXX if using git)EDIT: config file