![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 2
Rep Power: 0
![]() |
Bind <Key-Return> to an Entry
My application requires a user to enter numbers and specific alpha chars in entry fields. I would like to be able to bind the <Return> key to each entry with the focus then shifting to the next entry field for data input. Currently, this occurs using the <Tab> key in the application. How would I go about this?
|
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
Use the bind command:
bind .entry1 <Return> { focus .entry2 }should do it (obviously substitute your own entry widget window pathnames for .entry1 and .entry2). |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jul 2005
Posts: 2
Rep Power: 0
![]() |
Thanks!
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|