Clicking a button in the emulation window can trigger diverse functions: a character is copied into an input field, another field is activated automatically, or a corresponding key code is transmitted to the host system.
Similar settings apply for using the mouse in the emulation window.
The keyboard and mouse settings can be customized as required.
The structure of the settings file is described here for your reference. However, we recommend that you always make changes using the keyboard editor:
The files for keyboard settings define the associative array lwk.userkeys that assigns an action to each key.
Example:
lwk.userkeys = { ... /////////////////////// 3270 standard host keys /////////////////////////// control: 'lwk.send("<ENTER>")', RETURN: 'lwk.goLineNext()', ... F1: 'lwk.send("<PF1>")', F2: 'lwk.send("<PF2>")', ... s_F1: 'lwk.send("<PF13>")', s_F2: 'lwk.send("<PF14>")', ... };
RETURN: 'lwk.send("<ENTER>")',
Note:
... // cursor: char left: 'lwk.goCharLeft()', right: 'lwk.goCharRight()', ... // cursor: word c_left: 'lwk.goWordLeft()', c_right: 'lwk.goWordRight()', ... // select: char s_left: 'lwk.selectCharLeft()', ...
... /////////////////////// VT standard cursor /////////////////////////// pageup: 'lwv.key("<prev>")', pagedown: 'lwv.key("<next>")', insert: 'lwv.key("<insert>")', DELETE: 'lwv.key("<remove>")', ... left: 'lwv.key("<cub>")', right: 'lwv.key("<cuf>")', ...
... // clipboard sc_c: 'lwk.copy()', // copy selected text to clipboard sc_v: 'lwk.paste()', // paste clipboard to host ...These settings can be changed if necessary.
... /////////////////////// VT CTRL keys: use shift+control /////////////////////////// sc_space: 'lwv.bld.data("\x00")', sc_a: 'lwv.bld.data("\x01")', sc_b: 'lwv.bld.data("\x02")', sc_c: 'lwv.bld.data("\x03")', ... sc_v: 'lwv.bld.data("\x16")', ... // clipboard c_c: 'lwk.copy()', // copy selected text to clipboard c_v: 'lwk.paste()', // paste clipboard to host ...
The associative array lwk.userkeys in the keyboard files is also used to assign the required actions to mouse events. The entries correspond to those of the keyboard settings, but instead of the name of the computer key, the name of mouse events are displayed.
Example:
lwk.userkeys = { ... // assign mouse events onclick: '*lwk.posMouse()', // pos Cursor onclickright: '*lwk.menuMouse("lwh.menu.main")', // show context menu ondblclick: 'lwk.send("<ENTER>")', // send ENTER ondrag: '*lwh.select.start(false)', // select lines ondragright: '*lwh.select.start(true)', // select block s_ondrag: '*lwh.select.start(true)', // select block c_ondrag: '*lwh.select.start(true)', // select block a_ondrag: '*lwh.select.start(true)', // select block ... };
... onclick: '*lwk.posMouse()', // pos Cursor ...Depending on the host system and the host application, the selected position may not be available. The cursor then moves the next available position.
... onclickright: '*lwk.menuMouse("lwh.menu.main")', // show context menu ...Further information about the menus can found in menu settings.
... ondrag: '*lwh.select.start(false)', // select lines ondragright: '*lwh.select.start(true)', // select block ...
... sc_ondrag: 'lwv.bld.onmouse()', // the VT controlled mouse ...