IBus.Keymap¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
keymap |
[ |
r |
Keymap table. IME developers normally don have to touch this. |
name |
r |
The name of the keymap, such as ‘us’, ‘jp’. |
|
parent |
r |
Class Details¶
- class IBus.Keymap(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.Keymap
defines the mapping between keyboard scancodes and keyboard symbols such as numbers, alphabets, and punctuation marks.Some input methods assume certain keyboard layout (such as Chewing and Wubi requires an US-QWERTY layout), and expect key symbols to be arranged in that order. These input methods should new an
IBus.Keymap
instance and define the keyboard layout. ThenIBus.Keymap.lookup_keysym
() can convert scancodes back to the key symbols.see_also:
IBus.Component
,IBus.EngineDesc
- classmethod get(name)¶
- Parameters:
name (
str
) – The keymap file to be loaded, such as ‘us’, ‘jp’.- Returns:
An
IBus.Keymap
associated with the giving name; orNone
if failed.- Return type:
Get an
IBus.Keymap
associated with the giving name.This function loads the keymap file specified in name in the IBUS_DATA_DIR/keymaps directory.
- classmethod new(name)¶
- Parameters:
name (
str
) – The keymap file to be loaded, such as ‘us’, ‘jp’.- Returns:
An
IBus.Keymap
associated with the giving name; orNone
if failed.- Return type:
Get an
IBus.Keymap
associated with the giving name.This function loads the keymap file specified in name in the IBUS_DATA_DIR/keymaps directory.
Deprecated since version ???: This function has been deprecated and should not be used in newly written code. Please use
IBus.Keymap.get
().