mirror of
https://github.com/miracle-wm-org/miracle-wm.git
synced 2024-11-27 10:10:37 +03:00
bugfix: changing action key from alt to meta
This commit is contained in:
parent
96eefa2ea9
commit
60aa30cd32
@ -85,7 +85,7 @@ bool MiracleWindowManagementPolicy::handle_keyboard_event(MirKeyboardEvent const
|
|||||||
auto const scan_code = miral::toolkit::mir_keyboard_event_scan_code(event);
|
auto const scan_code = miral::toolkit::mir_keyboard_event_scan_code(event);
|
||||||
auto const modifiers = miral::toolkit::mir_keyboard_event_modifiers(event) & MODIFIER_MASK;
|
auto const modifiers = miral::toolkit::mir_keyboard_event_modifiers(event) & MODIFIER_MASK;
|
||||||
|
|
||||||
if (action == MirKeyboardAction::mir_keyboard_action_down && (modifiers & mir_input_event_modifier_alt))
|
if (action == MirKeyboardAction::mir_keyboard_action_down && (modifiers & mir_input_event_modifier_meta))
|
||||||
{
|
{
|
||||||
if (scan_code == KEY_ENTER)
|
if (scan_code == KEY_ENTER)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user