From 7f76ab7808b68d5c422fa76403be1e5b90b2ed13 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Wed, 22 Feb 2006 20:20:45 +0000 Subject: [PATCH] Added select all to grid Originally committed to SVN as r118. --- core/base_grid.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/core/base_grid.cpp b/core/base_grid.cpp index 9b3c76599..ccd783d9f 100644 --- a/core/base_grid.cpp +++ b/core/base_grid.cpp @@ -911,6 +911,9 @@ void BaseGrid::OnKeyPress(wxKeyEvent &event) { // Get scan code int key = event.KeyCode(); + bool ctrl = event.m_controlDown; + bool alt = event.m_altDown; + bool shift = event.m_shiftDown; // Left/right, forward to seek bar if video is loaded if (key == WXK_LEFT || key == WXK_RIGHT) { @@ -923,6 +926,12 @@ void BaseGrid::OnKeyPress(wxKeyEvent &event) { return; } + // Select all + if (key == 'A' && ctrl && !alt && !shift) { + int rows = GetRows(); + for (int i=0;i