frogstarr78 / gtkdialog

Automatically exported from code.google.com/p/gtkdialog
GNU General Public License v2.0
0 stars 0 forks source link

Allowing Enter key to end entry input #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When making a password script as in 01mico's example, pressing enter has no 
effect when I added the "Enter_Ok" code button in place of the one he used.
It seems logical that the user would enter his password and press Enter so can 
that be made to work?
This does not.
[code]
#! /bin/bash
export DLG='<window>
   <vbox>
    <hbox>
         <text>
     <label>Password</label>
    </text>
    <entry tooltip-text="Enter your password here">
       <default>""</default>
       <visible>password</visible>
       <variable>ENCKEY</variable>
     </entry>
   <button can-default="true" has-default="true" use-stock="true">
    <input file icon="gtk-ok"></input>
    <label>Ok</label>
   </button>
     </hbox>
    </vbox>
   </window>'
gtkdialog -p DLG
echo $ENCKEY
[/code]

Original issue reported on code.google.com by johnmeye...@gmail.com on 21 Aug 2011 at 8:10

GoogleCodeExporter commented 8 years ago
Request retracted!  It was just a matter of coding syntax and your latest 
example showed me how.
Thank you for that.

Original comment by johnmeye...@gmail.com on 21 Aug 2011 at 10:34

GoogleCodeExporter commented 8 years ago

Original comment by thunor...@hotmail.com on 22 Aug 2011 at 10:59

GoogleCodeExporter commented 8 years ago

Original comment by thunor...@hotmail.com on 6 Sep 2011 at 11:18