Alt+Click on grid will activate the clicked line, without modifying selection

Originally committed to SVN as r103.
This commit is contained in:
Rodrigo Braz Monteiro 2006-02-21 23:27:34 +00:00
parent aa6ef96527
commit 71b93a3379
2 changed files with 9 additions and 2 deletions

View File

@ -538,7 +538,7 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
// Click
if ((click || holding) && validRow) {
// Toggle selected
if (click && ctrl && !shift) {
if (click && ctrl && !shift && !alt) {
SelectRow(row,true,!IsInSelection(row,0));
parentFrame->UpdateToolbar();
return;
@ -553,8 +553,14 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
return;
}
// Keep selection
if (click && !shift && !ctrl && alt) {
editBox->SetToLine(row);
return;
}
// Block select
if ((click && shift && !ctrl) || (holding)) {
if ((click && shift && !ctrl && !alt) || (holding)) {
if (lastRow != -1) {
// Set boundaries
int i1 = row;

View File

@ -27,6 +27,7 @@ Please visit http://aegisub.net to download latest version
o Selected comments are now highlighted in a different color.
o Fixed behavior of deleting and joining lines on grid.
o Inserted lines will now be automatically selected.
o Alt+Click on grid will activate the clicked line, without modifying selection.
- Toolbar will now properly disable the Jump To buttons if more than one line is selected. (AMZ)
- Fixed the toolbar "grey area" glitch (was actually a wxWidgets issue). (AMZ)
- Default video zoom can now be set in config.dat and is defaulted to 100%. (AMZ)