Skip to content

Commit

Permalink
always treat navigation events as consumed
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Nov 18, 2024
1 parent a6fa50c commit e9b169b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vstgui/lib/ctexteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,9 @@ void TextEditorView::onKeyboardEvent (KeyboardEvent& event)
{
if (event.virt == VirtualKey::Up || event.virt == VirtualKey::Down ||
event.virt == VirtualKey::PageUp || event.virt == VirtualKey::PageDown ||
event.virt == VirtualKey::Left || event.virt == VirtualKey::Right)
event.virt == VirtualKey::Left || event.virt == VirtualKey::Right ||
event.virt == VirtualKey::Home || event.virt == VirtualKey::End ||
event.virt == VirtualKey::Delete || event.virt == VirtualKey::Back)
{
event.consumed = true;
}
Expand Down

0 comments on commit e9b169b

Please sign in to comment.