mirror of
https://github.com/WayfireWM/wf-osk.git
synced 2025-04-08 14:06:44 +02:00
enable numeric and shift layouts
This commit is contained in:
parent
0a9b99dd76
commit
7d84731f59
13
src/main.cpp
13
src/main.cpp
@ -153,8 +153,19 @@ namespace wf
|
||||
return *window;
|
||||
}
|
||||
|
||||
void Keyboard::handle_action(int32_t action)
|
||||
void Keyboard::handle_action(uint32_t action)
|
||||
{
|
||||
if (action == ABC_TOGGLE)
|
||||
{
|
||||
if (current_layout == default_layout.get()) {
|
||||
set_layout(shift_layout.get());
|
||||
} else {
|
||||
set_layout(default_layout.get());
|
||||
}
|
||||
}
|
||||
|
||||
if (action == NUM_TOGGLE)
|
||||
set_layout(numeric_layout.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ namespace wf
|
||||
static void create();
|
||||
static Keyboard& get();
|
||||
|
||||
void handle_action(int32_t action);
|
||||
void handle_action(uint32_t action);
|
||||
VirtualKeyboardDevice& get_device();
|
||||
Gtk::Window& get_window();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user