LookupGrid: Fix F2 not working for multiselect = true
This commit is contained in:
parent
8d91dcdb43
commit
40b8783af4
@ -157,9 +157,19 @@ Public Class frmLookupGrid
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub gridLookup_KeyUp(sender As Object, e As KeyEventArgs) Handles gridLookup.KeyUp
|
Private Sub gridLookup_KeyUp(sender As Object, e As KeyEventArgs) Handles gridLookup.KeyUp
|
||||||
|
HandleCustomKeys(e)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub gridLookup_EditorKeyUp(sender As Object, e As KeyEventArgs) Handles gridLookup.EditorKeyUp
|
||||||
|
HandleCustomKeys(e)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub HandleCustomKeys(e As KeyEventArgs)
|
||||||
If e.KeyCode = Keys.Escape Then
|
If e.KeyCode = Keys.Escape Then
|
||||||
Close()
|
Close()
|
||||||
ElseIf e.KeyCode = Keys.F2 Then
|
ElseIf e.KeyCode = Keys.F2 Then
|
||||||
|
' Make sure the currently focused row's state is saved
|
||||||
|
viewLookup.PostEditor()
|
||||||
SaveSelectedValues()
|
SaveSelectedValues()
|
||||||
|
|
||||||
DialogResult = DialogResult.OK
|
DialogResult = DialogResult.OK
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user