|
@@ -373,11 +373,6 @@ void AbstractTableView::set_row_height(int height)
|
|
|
|
|
|
void AbstractTableView::keydown_event(KeyEvent& event)
|
|
void AbstractTableView::keydown_event(KeyEvent& event)
|
|
{
|
|
{
|
|
- SelectionUpdate selection_update = SelectionUpdate::Set;
|
|
|
|
- if (event.modifiers() == KeyModifier::Mod_Shift) {
|
|
|
|
- selection_update = SelectionUpdate::Shift;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (is_tab_key_navigation_enabled()) {
|
|
if (is_tab_key_navigation_enabled()) {
|
|
if (event.modifiers() == KeyModifier::Mod_Shift && event.key() == KeyCode::Key_Tab) {
|
|
if (event.modifiers() == KeyModifier::Mod_Shift && event.key() == KeyCode::Key_Tab) {
|
|
move_cursor(CursorMovement::Left, SelectionUpdate::Set);
|
|
move_cursor(CursorMovement::Left, SelectionUpdate::Set);
|
|
@@ -391,46 +386,6 @@ void AbstractTableView::keydown_event(KeyEvent& event)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (event.key() == KeyCode::Key_Left) {
|
|
|
|
- move_cursor(CursorMovement::Left, selection_update);
|
|
|
|
- event.accept();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (event.key() == KeyCode::Key_Right) {
|
|
|
|
- move_cursor(CursorMovement::Right, selection_update);
|
|
|
|
- event.accept();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (event.key() == KeyCode::Key_Up) {
|
|
|
|
- move_cursor(CursorMovement::Up, selection_update);
|
|
|
|
- event.accept();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (event.key() == KeyCode::Key_Down) {
|
|
|
|
- move_cursor(CursorMovement::Down, selection_update);
|
|
|
|
- event.accept();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (event.key() == KeyCode::Key_Home) {
|
|
|
|
- move_cursor(CursorMovement::Home, selection_update);
|
|
|
|
- event.accept();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (event.key() == KeyCode::Key_End) {
|
|
|
|
- move_cursor(CursorMovement::End, selection_update);
|
|
|
|
- event.accept();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (event.key() == KeyCode::Key_PageUp) {
|
|
|
|
- move_cursor(CursorMovement::PageUp, selection_update);
|
|
|
|
- event.accept();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (event.key() == KeyCode::Key_PageDown) {
|
|
|
|
- move_cursor(CursorMovement::PageDown, selection_update);
|
|
|
|
- event.accept();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
return AbstractView::keydown_event(event);
|
|
return AbstractView::keydown_event(event);
|
|
}
|
|
}
|
|
|
|
|