1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 23:25:06 +00:00

LibGUI: Change GUI::KeyEvent::key() type to KeyCode

...instead of a plain int. Yay for some type safety.
This commit is contained in:
Sergey Bugaev 2020-05-27 00:29:57 +03:00 committed by Andreas Kling
parent abfcd7b1b8
commit fce49b3e32
5 changed files with 11 additions and 5 deletions

View file

@ -147,6 +147,8 @@ void CursorTool::on_keydown(GUI::KeyEvent& event)
case Key_Right:
move_selected_widgets_by(m_editor.form_widget().grid_size(), 0);
break;
default:
break;
}
}
}