## WorkShop Visual Replay Command Syntax - Keyboard Operations

#### Keywords

- alt - select current word
- ctrl - select current line
- key - enter a keysym from the keyboard

#### Synopsis

        alt char
        ctrl char
        key keysym

#### Inputs

- char - a single character
- keysym - any X keysym (see X11/keysymdef.h for list)

#### Description

Keyboard input is directed at the widget that has the focus. WorkShop Visual Replay does not require any extra programming to enter input from the keyboard.

Users and test scripts alike have to work with the window manager when entering text. Where explicit focus is in place (i.e. you have to click in a window to get the focus), you will have to program this into the test script.

#### Example

        in ApplicationShell
    	alt f
    	type o

        in open_file_popup
    	multiclick selection_field
    	type foo.xd
    	push ok_button
    	doubleclick my_text_field
    	type hallo world
    	key Return

#### Notes

A push or a doubleclick in a text field has the side effect of taking the focus. This is the only place in WorkShop Visual Replay that focus is handled directly.

Data entry into text fields often overrides what is already there, and will be preceded by a doubleclick or a multiclick.

See also:

- WorkShop Visual Replay Command Syntax