On Sat, 08 Oct 2011 10:30:42 +0200, Julien Danjou wrote: >> Hi. I wrote a hack which provides for example "space/shift dual role key". >> When you press the space key alone, it's a space; but when you press it with >> another key, it's a shift. > > I don't understand: What is the difference with doing this: > > $ xmodmap -e "add Shift = space"
Salut, Julien. An interesting question. As far as I tested, you'll always receive one "space" before shift with this xmodmap code. With my hack, it'll be a pure shift. Since upper case letters are often preceeded with a space, the above xmodmap trick is nice. On the other hand, my fork allows you any pairs. In fact, my space is bound to Ctrl which has nothing to do with the previous letter. I'm Japanese, and Japanese keyboards have many keys you can press with thumbs. My bottom row keys are Esc-BS-Spc-Ret-Tab with Alt-Shift-Ctrl-Shift-Alt which is never possible with xmodmap. :) (I've got this keyboard: http://kakaku.com/item/K0000032241/images/ ) On Sat, 8 Oct 2011 15:42:31 +0700, Diep Pham Van wrote: > So I cannot type "Ctrl+Space"? Xin chao, Điệp PHẠM Văn. (I hope this is an appropriate greeting.) If there remains an original shift key you can type it. (The order matters. If you press space/shift key and release it without touching another key, it works as a space.) I don't need Ctrl+space except inside of Emacs, and you can rebind keys in Emacs, it's not a problem for me. Regards, Teika (Teika kazura)
