Keyboard |
Keyboard.ycp |
Provide information regarding the keyboard. | |
|
Usage:
------
This module provides the following data for public access via Keyboard::Imports
Global Functions
Local Functions |
GetKbdSysconfig()
Restore the the non-keyboard values from sysconfig.
- Return value:
-
-
GetX11KeyData()
Get the keyboard info for X11 for the given keymap
- Parameters:
-
keymap
- Return value:
-
containing the x11 config data
run X11 configuration after inital boot
SetLanguage()
Set language specific module data to reflect the given language.
- Parameters:
-
keyboard
- Return value:
-
true - Success. Language set in public data. false - Error. Language not set.
Restore()
Restore the the data from sysconfig.
- Return value:
-
true - Data could be restored false - Restore not successful
- See
-
Save()
XkblayoutToKeyboard()
Convert X11 keyboard layout name to yast2 name for keyboard description. e.g. "de" --> "german"
- Parameters:
-
x11_layout
- Return value:
-
yast2 name for keyboard description
GetKeyboardForLanguage()
Get the keyboard language for the given system language.
- Parameters:
-
sys_language default_keyboard
- Return value:
-
The keyboard language for this language, e.g. "english-us" or the default value if nothing found.
Probe()
Allow for intentional probing by applications.
- Return value:
-
-
- See
-
Keyboard()
Keyboard()
The module constructor. Sets the proprietary module data defined globally for public access. This is done only once (and automatically) when the module is loaded for the first time.
- Return value:
-
-
- See
-
Probe()
xf86_update()
Updates the keyboard settings in the XF86Config file.
!!! only XFree 4 !!!
- Return value:
-
true - success false - failure
Save()
Save the current data into a file to be read after a reboot.
- Parameters:
-
update_x11
- Return value:
-
-
- See
-
Restore()
Name() Just return the keyboard name, without setting anything.
- Return value:
-
user readable description.
SetConsole()
Set the console keyboard to the given keyboard language.
- Parameters:
-
keyboard
- Return value:
-
The loadkeys command that has been executed to do it. (also stored in Keyboard::ckb_cmd)
- See
-
SetX11()
SetX11()
Set the X11 keyboard to the given keyboard language.
- Parameters:
-
keyboard
- Return value:
-
The xkbset command that has been executed to do it. (also stored in Keyboard::xkb_cmd)
- See
-
SetConsole()
Set()
Set the keyboard to the given keyboard language.
- Parameters:
-
keyboard
- Return value:
-
MakeProposal()
Return proposal string and set system keyboard.
- Parameters:
-
force_reset language_changed
- Return value:
-
user readable description. If force_reset is true reset the module to the keyboard stored in default_kbd.
CalledRestore()
Return if the kbd values have already been read from /etc/sysconfig/keyboard
Selection()
Get the map of translated keyboard names.
- Return value:
-
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.
- See
-
-
Return a map for conversion from keymap to YaST2 keyboard code() Get the map of translated keyboard names.
- Return value:
-
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.