1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibGUI: Allow to lowercase conversion in Vim emulation

If Key_U is pressed while in visual mode, the currently selected text
will be converted to lowercase.
This commit is contained in:
huttongrabiel 2022-05-18 12:09:55 -07:00 committed by Linus Groh
parent e3bef71d05
commit a54b681149

View file

@ -1195,6 +1195,10 @@ bool VimEditingEngine::on_key_in_visual_mode(KeyEvent const& event)
yank(Selection);
switch_to_normal_mode();
return true;
case (KeyCode::Key_U):
casefold_selection(Casing::Lowercase);
switch_to_normal_mode();
return true;
case (KeyCode::Key_PageUp):
move_page_up();
update_selection_on_cursor_move();