Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93608

Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time?

From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time?
Date 2015-07-09 23:42 +0300
Organization A noiseless patient Spider
Message-ID <87si8x6p1p.fsf@elektro.pacujo.net> (permalink)
References <55904328$0$1636$c3e8da3$5496439d@news.astraweb.com> <tsAnx.3609$JE3.2939@fx44.am4> <mailman.371.1436473016.3674.python-list@python.org>

Show all headers | View raw


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.

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).


Marko

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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