MCPcopy Create free account
hub / github.com/deskflow/deskflow / EiKeyState

Method EiKeyState

src/lib/platform/EiKeyState.cpp:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace deskflow {
21
22EiKeyState::EiKeyState(EiScreen *screen, IEventQueue *events)
23 : KeyState(
24 events, AppUtil::instance().getKeyboardLayoutList(), Settings::value(Settings::Client::LanguageSync).toBool()
25 ),
26 m_screen{screen}
27{
28 m_xkb = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
29
30 // FIXME: PrimaryClient->enable() calls into our keymap, so we must have
31 // one during initial startup - even before we know what our actual keymap is.
32 // Once we get the actual keymap from EIS, we swap it out so hopefully that's
33 // enough.
34 initDefaultKeymap();
35}
36
37void EiKeyState::initDefaultKeymap()
38{

Callers

nothing calls this directly

Calls 1

getKeyboardLayoutListMethod · 0.45

Tested by

no test coverage detected