Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93624
| Date | 2015-07-09 22:56 -0600 |
|---|---|
| From | Michael Torrie <torriem@gmail.com> |
| Subject | Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? |
| References | <55904328$0$1636$c3e8da3$5496439d@news.astraweb.com> <tsAnx.3609$JE3.2939@fx44.am4> <mailman.371.1436473016.3674.python-list@python.org> <87si8x6p1p.fsf@elektro.pacujo.net> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.383.1436504170.3674.python-list@python.org> (permalink) |
On 07/09/2015 02:42 PM, Marko Rauhamaa wrote: > Skip Montanaro <skip.montanaro@gmail.com>: > >> It makes perfect sense to me that TAB and Ctrl-TAB would generate the >> same keycode, as TAB is itself a control character (Ctrl-I). As the >> Ctrl modifier bit is effectively already set, I don't think you can >> really set it a second time and be able to detect it. > > If you input a character stream, that's the case since the characters > are Unicode code points. AFAIK, Unicode doesn't have Ctrl-TAB as a > separate code point. Yes and readline works on character streams, not with X11. > > However, X11 key events come with modifiers. Thus, CAPS-A, LeftShift-A, > RightShift-A, CAPS-LeftShift-RightShift-A and the plain A are different > key events (provided the physical keyboard plays along). Not relevant to libreadline, unfortunately.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Readline -- cannot bind to both Ctrl-tab and tab at the same time? Steven D'Aprano <steve@pearwood.info> - 2015-06-29 04:55 +1000
Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Laura Creighton <lac@openend.se> - 2015-06-28 23:22 +0200
Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Chris Angelico <rosuav@gmail.com> - 2015-06-29 11:36 +1000
Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Tony the Tiger <tony@tiger.invalid> - 2015-07-09 20:03 +0000
Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Marko Rauhamaa <marko@pacujo.net> - 2015-07-09 23:42 +0300
Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time? Michael Torrie <torriem@gmail.com> - 2015-07-09 22:56 -0600
csiph-web