mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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:
parent
e3bef71d05
commit
a54b681149
Notes:
sideshowbarker
2024-07-17 18:13:59 +09:00
Author: https://github.com/huttongrabiel
Commit: a54b681149
Pull-request: https://github.com/SerenityOS/serenity/pull/14057
Reviewed-by: https://github.com/BertalanD ✅
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/petelliott ✅
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue