91. Keyboard

Provide information regarding the keyboard.

91.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    91.2. Global Functions

    91.2.1. CalledRestore

    CalledRestore()

    Return value

    • boolean

    91.2.2. GetKeyboardForLanguage

    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.

    91.2.3. GetX11KeyData

    GetX11KeyData()

    Function parameters

    • string keymap

    Return value

    • map - containing the x11 config data

    91.2.4. Keyboard

    Keyboard()

    Return value

    • void - -

    91.2.5. MakeProposal

    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.

    91.2.6. Name

    Name() Just return the keyboard name, without setting anything.

    Return value

    • string - user readable description.

    91.2.7. Probe

    Probe()

    Return value

    • void - -

    91.2.8. Restore

    Restore()

    Return value

    • boolean - true - Data could be restored false - Restore not successful

    91.2.9. Save

    Save()

    Function parameters

    • boolean update_x11

    Return value

    • void - -

    91.2.10. Selection

    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.

    91.2.11. Set

    Set()

    Function parameters

    • string keyboard

    Return value

    • void -

    91.2.12. SetConsole

    SetConsole()

    Function parameters

    • string keyboard

    Return value

    • string - The loadkeys command that has been executed to do it. (also stored in Keyboard::ckb_cmd)

    91.2.13. SetLanguage

    SetLanguage()

    Function parameters

    • string keyboard

    Return value

    • boolean - true - Success. Language set in public data. false - Error. Language not set.

    91.2.14. SetX11

    SetX11()

    Function parameters

    • string keyboard

    Return value

    • string - The xkbset command that has been executed to do it. (also stored in Keyboard::xkb_cmd)

    91.2.15. keymap2yast

    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.

    91.2.16. xf86_update

    xf86_update()

    Return value

    • boolean - true - success false - failure

    91.3. Global Variables

    91.4. Module Requirements

    91.4.1. Module Imports

    • Arch
    • AsciiFile
    • Directory
    • Language
    • Linuxrc
    • Misc
    • Mode
    • ProductFeatures
    • Stage

    91.4.2. Module Includes