Skip to content

Commit

Permalink
Added keyboard shortcuts to the Google Drive form
Browse files Browse the repository at this point in the history
  • Loading branch information
moisespr123 committed Apr 30, 2019
1 parent 6abc945 commit a5baf33
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions opus_gui/GoogleDriveForm.vb
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,17 @@
If FoldersListBox.SelectedIndex > -1 Then PopulateListBoxes(drive, drive.FolderListID(FoldersListBox.SelectedIndex))
End Sub

Private Sub FoldersListBox_KeyDown(sender As Object, e As KeyEventArgs) Handles FoldersListBox.KeyDown
If e.KeyCode = Keys.Enter Then
If FoldersListBox.SelectedIndex > -1 Then
PopulateListBoxes(drive, drive.FolderListID(FoldersListBox.SelectedIndex))
End If
ElseIf e.KeyCode = Keys.Back Then
If (GoBackButton.Enabled) Then
PopulateListBoxes(drive, "back")
End If
ElseIf (e.KeyCode = Keys.F5) Then
PopulateListBoxes(drive, drive.currentFolder, True)
End If
End Sub
End Class

0 comments on commit a5baf33

Please sign in to comment.