Tk Source Code

View Ticket
Login
Ticket UUID: 1534455
Title: The Released key is different than the Pressed
Type: Bug Version: obsolete: 8.5a4
Submitter: ctasada Created on: 2006-08-04 10:52:49
Subsystem: 01. Bindings Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2016-08-08 22:06:04
Resolution: Duplicate Closed By: fvogel
    Closed on: 2016-08-08 22:06:04
Description:
I've only tested with 8.5a4 but if I execute the next code:

(Bin) 2 % bind . <KeyPress> {puts "Pressed %K"}
(Bin) 3 % bind . <KeyRelease> {puts "Released %K"}

I see

Pressed Shift_L
Released Shift_L
Pressed Shift_R
Released Shift_L
Pressed Control_L
Released Control_L
Pressed Control_R
Released Control_L

AFAIK only happens with the Shift and Control keys, but
it's quite annoying.

Cheers
User Comments: fvogel added on 2016-08-08 22:06:04:

Duplicate of [2945130] (where there is a bit more details, and a test script).