Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: fb776ff593f7c0d38bdfc254a700d64e59e9c8d5
Ticket: 2046267fffffffffffffffffffffffffffffffff
Ttk::button -takefocus option influences <Button-1>
User & Date: oehhar 2013-11-22 13:05:34
Changes

  1. closer changed to: "nobody"
  2. comment changed to:
    A ttk::button which has -takefocus 1, will get the focus on a <ButtonPress-1> event. This is inconsistent with normal -takefocus behaviour, which only governs keyboard traversal with <Tab>.
    
    Even if this is intentional for ttk, it is inconsistent with the ttk documentation which says:
    
    -takefocus: Determines whether the window accepts the focus during keyboard traversal. Either 0, 1, a command prefix (to which the widget path is appended, and which should return 0 or 1), or the empty string. See options(n) in the Tk reference manual for the full description.
    
    Note that fixing this would also fix [1904322] and [1936220].
    
    See also [http://wiki.tcl.tk/20050].
    
  3. login: "oehhar"
  4. mimetype: "text/plain"
  5. severity changed to: "Minor"