Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

They can always run stderr through uniq. :-) -- Larry Wall in <199704012331.PAA16535@wall.org>


devel / comp.lang.tcl / Shift-Tab binding not working

SubjectAuthor
* Shift-Tab binding not workingLuc
`* Shift-Tab binding not workingundroidwish
 `* Shift-Tab binding not workingLuc
  `* Shift-Tab binding not workingManfred Stelzhammer
   `* Shift-Tab binding not workingLuc
    +- Shift-Tab binding not workingRich
    `- Shift-Tab binding not workingManfred Stelzhammer

1
Shift-Tab binding not working

<20231205223204.4200d59d@lud1.home>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12531&group=comp.lang.tcl#12531

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc...@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Shift-Tab binding not working
Date: Tue, 5 Dec 2023 22:32:04 -0300
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <20231205223204.4200d59d@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="3008138cf6a26e6698770276a479e457";
logging-data="497093"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rFKvyw+UqrpbhLRRtvuTpG7TdqWJ0gGA="
Cancel-Lock: sha1:Csfya5mkGuvmVqAqZt7Tg0onmIA=
 by: Luc - Wed, 6 Dec 2023 01:32 UTC

I have a long series of text widget boxes.

When I press Tab, the focus jumps from one box to the next one.

When I press Shift+Tab, the focus jumps from one box to the previous one.

Other things happen too, but they are not relevant now except that they
only happen when I jump forward, never when I jump backwards.

Jump forward and jump backwards have different proc sections and I could
determine that the jump backwards section is never run.

These are my bindings:

bind [set ::target_$x] <Tab> {p.navigate "down"; break}
bind [set ::target_$x] <Shift_R><Tab> {p.navigate "up"; break}

Any idea on how I can find out why one section is never run? They are
stated one right after the other and there is no 'return' or loop
break/continue command involved.

In fact, I put a debug statement right at the fiirst line of the proc
like puts $action and the "up" action never turns up. The "down" action
turns up every time.

The second binding is not working. Why?

--
Luc
>>

Re: Shift-Tab binding not working

<ukotle$kcb4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12532&group=comp.lang.tcl#12532

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.chmurka.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: undroidw...@googlemail.com (undroidwish)
Newsgroups: comp.lang.tcl
Subject: Re: Shift-Tab binding not working
Date: Wed, 6 Dec 2023 05:34:54 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <ukotle$kcb4$1@dont-email.me>
References: <20231205223204.4200d59d@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Dec 2023 04:34:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="06623168d4f82e9217a3c240f21576c4";
logging-data="668004"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Lh2dv4PuROsKs7RrQ/a+ajZlQ6T7yGaM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Cancel-Lock: sha1:u7MobHIP0hSFI7et2oA44cLaqKc=
Content-Language: en-US
In-Reply-To: <20231205223204.4200d59d@lud1.home>
 by: undroidwish - Wed, 6 Dec 2023 04:34 UTC

On 12/6/23 02:32, Luc wrote:

> ...
> The second binding is not working. Why?

Since you should use <Shift><Tab> instead. <Shift_R> is the actual key,
but <Shift> the qualifier state.

Re: Shift-Tab binding not working

<20231206141855.025d9b7a@lud1.home>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12534&group=comp.lang.tcl#12534

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc...@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: Shift-Tab binding not working
Date: Wed, 6 Dec 2023 14:18:55 -0300
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <20231206141855.025d9b7a@lud1.home>
References: <20231205223204.4200d59d@lud1.home>
<ukotle$kcb4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="cb991774073b372c1a179784f97f0681";
logging-data="906410"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qUj6TAtZfQx8oZg5L2jRxBfMYvfQ8sFI="
Cancel-Lock: sha1:vLnFsXVG43fmoReACz3abT/XH08=
 by: Luc - Wed, 6 Dec 2023 17:18 UTC

On Wed, 6 Dec 2023 05:34:54 +0100, undroidwish wrote:

>On 12/6/23 02:32, Luc wrote:
>
>> ...
>> The second binding is not working. Why?
>
>Since you should use <Shift><Tab> instead. <Shift_R> is the actual key,
>but <Shift> the qualifier state.
>
**************************

No.

bad event type or keysym "Shift"
while executing
"bind [set ::target_$x] <Shift><Tab> {p.navigate "up"; break}"

--
Luc
>>

Re: Shift-Tab binding not working

<ukqb65$rlr6$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12535&group=comp.lang.tcl#12535

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: manf...@antispam.at (Manfred Stelzhammer)
Newsgroups: comp.lang.tcl
Subject: Re: Shift-Tab binding not working
Date: Wed, 6 Dec 2023 18:31:48 +0100
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <ukqb65$rlr6$1@dont-email.me>
References: <20231205223204.4200d59d@lud1.home> <ukotle$kcb4$1@dont-email.me>
<20231206141855.025d9b7a@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Dec 2023 17:31:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="18173f7c80dd8324170309a47e0d47af";
logging-data="907110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18g/sdzlnoBFwKulGfzeejaR1WvCCGw8pE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:WXGoN9S/mbZmBkopKszERSkePv4=
In-Reply-To: <20231206141855.025d9b7a@lud1.home>
Content-Language: de-AT-frami
 by: Manfred Stelzhammer - Wed, 6 Dec 2023 17:31 UTC

Hi

Try:

## script start
pack [entry .en]
bind .en <Key> "tuwas %K"

proc tuwas {args} {
puts "the key is $args"
}

## script end

Now fous .en

Press <Shift><Tab>

Now you'll see the keysum.

I my case on linux it's ISO_Left_Tab

Regards

Manfred

Am 06.12.23 um 18:18 schrieb Luc:
> On Wed, 6 Dec 2023 05:34:54 +0100, undroidwish wrote:
>
>> On 12/6/23 02:32, Luc wrote:
>>
>>> ...
>>> The second binding is not working. Why?
>>
>> Since you should use <Shift><Tab> instead. <Shift_R> is the actual key,
>> but <Shift> the qualifier state.
>>
> **************************
>
> No.
>
> bad event type or keysym "Shift"
> while executing
> "bind [set ::target_$x] <Shift><Tab> {p.navigate "up"; break}"
>
>

Re: Shift-Tab binding not working

<20231206162718.1fa93a17@lud1.home>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12536&group=comp.lang.tcl#12536

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc...@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: Shift-Tab binding not working
Date: Wed, 6 Dec 2023 16:27:18 -0300
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <20231206162718.1fa93a17@lud1.home>
References: <20231205223204.4200d59d@lud1.home>
<ukotle$kcb4$1@dont-email.me>
<20231206141855.025d9b7a@lud1.home>
<ukqb65$rlr6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="cb991774073b372c1a179784f97f0681";
logging-data="945785"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CE5o91v5whpg4MLBAy9y2s3wmHJEfwWw="
Cancel-Lock: sha1:Z6ZIJTVJHFMH36cJRbKXiy4R5ZA=
 by: Luc - Wed, 6 Dec 2023 19:27 UTC

On Wed, 6 Dec 2023 18:31:48 +0100, Manfred Stelzhammer wrote:

>Hi
>
>Try:
>
>## script start
>pack [entry .en]
>bind .en <Key> "tuwas %K"
>
>proc tuwas {args} {
> puts "the key is $args"
>}
>
>
>## script end
>
>Now fous .en
>
>Press <Shift><Tab>
>
>Now you'll see the keysum.
>
>I my case on linux it's ISO_Left_Tab
>
>
>Regards
>
>Manfred

**************************

Yes. That works.

A little strange that both the left and the right Shift keys generate
ISO_Left_Tab.

But OK, that works for me.

Problem solved. Thank you.

--
Luc
>>

Re: Shift-Tab binding not working

<ukqm6h$thf4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12537&group=comp.lang.tcl#12537

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Shift-Tab binding not working
Date: Wed, 6 Dec 2023 20:39:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <ukqm6h$thf4$1@dont-email.me>
References: <20231205223204.4200d59d@lud1.home> <ukotle$kcb4$1@dont-email.me> <20231206141855.025d9b7a@lud1.home> <ukqb65$rlr6$1@dont-email.me> <20231206162718.1fa93a17@lud1.home>
Injection-Date: Wed, 6 Dec 2023 20:39:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f52dbff3270d18156bb282a4ca0528d4";
logging-data="968164"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ltPxEfpCLXwzLnP+asmm9"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:SEo1krVKyjoGJTECXfieV6f2oUk=
 by: Rich - Wed, 6 Dec 2023 20:39 UTC

Luc <luc@sep.invalid> wrote:
>
> A little strange that both the left and the right Shift keys generate
> ISO_Left_Tab.
>
> But OK, that works for me.

That is because it is not referring to the key, but rather the action
the key signifies. It is indicating do the action of "tabbing to the
left".

Re: Shift-Tab binding not working

<ul066u$1tddd$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12538&group=comp.lang.tcl#12538

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: manf...@antispam.at (Manfred Stelzhammer)
Newsgroups: comp.lang.tcl
Subject: Re: Shift-Tab binding not working
Date: Fri, 8 Dec 2023 23:43:42 +0100
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <ul066u$1tddd$1@dont-email.me>
References: <20231205223204.4200d59d@lud1.home> <ukotle$kcb4$1@dont-email.me>
<20231206141855.025d9b7a@lud1.home> <ukqb65$rlr6$1@dont-email.me>
<20231206162718.1fa93a17@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Dec 2023 22:43:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3e9b7d251d0df0a4527b32fbdec9b95c";
logging-data="2012589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iilr/10Wuh/p+8/cL+vAqdplukeqp6SE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YbwRFS6zFyIMuYfRRJr6rohF91A=
In-Reply-To: <20231206162718.1fa93a17@lud1.home>
Content-Language: de-AT-frami
 by: Manfred Stelzhammer - Fri, 8 Dec 2023 22:43 UTC

Hello

##
pack [entry .en]
bind .en <Key> "tuwas %K"

proc tuwas {key} {
if {$key eq "Shift_L"} {set ::mylastshiftkey Shift_L}
if {$key eq "Shift_R"} {set ::mylastshiftkey Shift_R}
if {$key ne "ISO_Left_Tab" || $::mylastshiftkey ne "Shift_L"} {return}
##Your code##
puts "<Shift-Left><Tab> pressed"
} ##

With this code only <Shift_L><Tab> works

regards

Manfred

Am 06.12.23 um 20:27 schrieb Luc:
> On Wed, 6 Dec 2023 18:31:48 +0100, Manfred Stelzhammer wrote:
>
>> Hi
>>
>> Try:
>>
>> ## script start
>> pack [entry .en]
>> bind .en <Key> "tuwas %K"
>>
>> proc tuwas {args} {
>> puts "the key is $args"
>> }
>>
>>
>> ## script end
>>
>> Now fous .en
>>
>> Press <Shift><Tab>
>>
>> Now you'll see the keysum.
>>
>> I my case on linux it's ISO_Left_Tab
>>
>>
>> Regards
>>
>> Manfred
>
> **************************
>
> Yes. That works.
>
> A little strange that both the left and the right Shift keys generate
> ISO_Left_Tab.
>
> But OK, that works for me.
>
> Problem solved. Thank you.
>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor