focus(n)		     Ck Built-In Commands		      focus(n)



______________________________________________________________________________

NAME
       focus - Manage the input focus

SYNOPSIS
       focus
       focus window
_________________________________________________________________


DESCRIPTION
       The  focus  command is used to manage the Ck input focus.  At any given
       time, one window on the terminal's screen is designated	as  the	 focus
       window;	 any key press events are sent to that window.	The Tcl proce-
       dures ck_focusNext and ck_focusPrev implement a focus order  among  the
       windows	of a top-level;	 they are used in the default bindings for Tab
       and Shift-Tab, among other things. Switching the focus among  different
       top-levels is up to the user.

       The focus command can take any of the following forms:

       focus  Returns  the path name of the focus window or an empty string if
	      no window in the application has the focus.

       focus window
	      This command sets the input focus to window and returns an empty
	      string.  If  window is in a different top-level than the current
	      input focus window, then	window's  top-level  is	 automatically
	      raised  just  as	if the raise Tcl command had been invoked.  If
	      window is an empty string then the command does nothing.


KEYWORDS
       events, focus, keyboard, top-level



Ck				      8.0			      focus(n)
