From b.rowlingson at lancaster.ac.uk  Thu Aug 14 23:52:58 2008
From: b.rowlingson at lancaster.ac.uk (Barry Rowlingson)
Date: Thu, 14 Aug 2008 22:52:58 +0100
Subject: [Rd] Double-clicking in tk list dialogs
Message-ID: <d8ad40b50808141452p2b2f6fa1o10a70434c9123f67@mail.gmail.com>

Am I the only one who finds himself futilely double-clicking a CRAN
mirror in the dialog for choosing a CRAN mirror? Yes, double-clicking
works in Windows, but not in the Tk-based dialog on Linux. I'm going
to wear out my mouse button.

Adding the following line to the tk_select.list function in the tcltk
package adds double-click functionality to list dialogs:

  tkbind(box, "<Double-ButtonPress-1>",onOK)

 (put it in the right place though, after 'box' has been created).

 Not sure if this would be a default behaviour, or if its's worth
having a 'doubleClick=FALSE' argument that switches it on if TRUE.
Anyway, it was a little niggle that bothered me recently, and after
fixing someone else's TclTK problem recently I figured I'd have a go
at this.

 Consider it a feature request for the next version.

Barry



[Rd] Double-clicking in tk list dialogs
Barry Rowlingson