Provide information regarding the keyboard.
List of Global Functions
CalledRestore - CalledRestore()
CheckKeyboardDuringUpdate - Special function for update mode only. Checks for the keyboard layout on the system which should be updated and if it differs from current one, opens a popup with the offer to change the layout. See discussion in bug #71069
Export - AutoYaST interface function: Return the Keyboard configuration as a map.
GetExpertValues - GetExpertValues()
GetKeyboardForLanguage - GetKeyboardForLanguage()
GetKeyboardItems - Return item list of keyboard items, sorted according to current language
GetX11KeyData - GetX11KeyData()
Import - AutoYaST interface function: Get the Keyboard configuration from a map.
Keyboard - Keyboard()
MakeProposal - MakeProposal()
Modified - was anything modified?
Name - Name() Just return the keyboard name, without setting anything.
Probe - Probe()
Read - Just store inital values - read was done in constructor
Restore - Restore the the data from sysconfig.
Save - Save the current data into a file to be read after a reboot.
Selection - Selection()
Set - Set()
SetConsole - Set the console keyboard to the given keyboard language.
SetExpertValues - SetExpertValues()
SetKeyboard - SetKeyboard()
SetX11 - Set the X11 keyboard to the given keyboard language.
Summary - AutoYaST interface function: Return the summary of Keyboard configuration as a map.
get_lang2keyboard - Get the system_language --> keyboard_language conversion map.
keymap2yast - Return a map for conversion from keymap to YaST2 keyboard code() Get the map of translated keyboard names.
xf86_update - Updates the X11 keyboard settings (using SaX library)
List of Global Variables
expert_on_entry - expert values on start
keyboard_on_entry - keyboard set on start
Special function for update mode only. Checks for the keyboard layout on the system which should be updated and if it differs from current one, opens a popup with the offer to change the layout. See discussion in bug #71069
Function parameters
string destdir
Return value
void
AutoYaST interface function: Return the Keyboard configuration as a map.
Return value
map - with the settings
GetKeyboardForLanguage()
Function parameters
string sys_language
string default_keyboard
Return value
string - The keyboard language for this language, e.g. "english-us" or the default value if nothing found.
Return item list of keyboard items, sorted according to current language
Return value
list<term>
GetX11KeyData()
Function parameters
string keymap
Return value
map - containing the x11 config data
AutoYaST interface function: Get the Keyboard configuration from a map.
Function parameters
map settings
Return value
boolean - success
MakeProposal()
Function parameters
boolean force_reset
boolean language_changed
Return value
string - user readable description. If force_reset is true reset the module to the keyboard stored in default_kbd.
Name() Just return the keyboard name, without setting anything.
Return value
string - user readable description.
Restore the the data from sysconfig.
Return value
boolean - true - Data could be restored false - Restore not successful
See also:
Save()
Save the current data into a file to be read after a reboot.
Function parameters
boolean update_x11
Return value
void
Selection()
Return value
map<string, string> - of $[ keyboard_code : keyboard_name, ...] for all known keyboards. 'keyboard_code' is used internally in Set and Get functions. 'keyboard_name' is a user-readable string.
Set()
Function parameters
string keyboard
Return value
void -
See also:
SetX11(), SetConsole()
Set the console keyboard to the given keyboard language.
Function parameters
string keyboard
Return value
string - The loadkeys command that has been executed to do it. (also stored in Keyboard::ckb_cmd)
SetKeyboard()
Function parameters
string keyboard
Return value
boolean - true - Success. Language set in public data. false - Error. Language not set.
Set the X11 keyboard to the given keyboard language.
Function parameters
string keyboard
Return value
string - The xkbset command that has been executed to do it. (also stored in Keyboard::xkb_cmd)
AutoYaST interface function: Return the summary of Keyboard configuration as a map.
Return value
string - summary string (html)
Get the system_language --> keyboard_language conversion map.
Return value
map - conversion map
See also:
get_xkblayout2keyboard()
Return a map for conversion from keymap to YaST2 keyboard code() Get the map of translated keyboard names.
Return value
map<string, string> - of $[ keyboard_code : keyboard_name, ...] for all known keyboards. 'keyboard_code' is used internally in Set and Get functions. 'keyboard_name' is a user-readable string. Uses Language::language for translation.