excuse my english
i have a little example in gtk
Code: Select all
#! /bin/bash
export DIALOG='
<window title="PERSONAL UNIT OR FOLDER" resizable="true" icon-name="computer">
<vbox>
<checkbox>
<variable>CHECKBOX</variable>
<label>FOLDER COMMON</label>
</checkbox>
<text use-markup="true" width-chars="40">
<label>INPUT PERSONAL UNIT</label>
</text>
<entry xalign="0.5" is-focus="true">
<default>User Input</default>
<variable>NAME1</variable>
<action signal="activate">command</action>
</entry>
<entry>
<default>Password Input</default>
<variable>NAME2</variable>
</entry>
<hbox>
<button ok></button>
<button cancel></button>
</hbox>
</vbox>
</window>
'
I=$IFS; IFS=""
for DECLARNAME in $(gtkdialog --center --program DIALOG); do
eval $DECLARARNOMBRE
done
IFS=$I
How i can to pass focus of "User Input" to "Password Input" texbox using enter key?
or
fill textbox "User Input" and press [enter] then
... the focus should move to the second box, then newly I fill textbox "Passworod Input", then
I press to enter key.... pass the focus to button OK, and finally press to enter key for end
newlly, excuse my english.
(I used google traslate)
thanks