Skip to content

Commit

Permalink
Fixes #109
Browse files Browse the repository at this point in the history
Fix for #109 and some aliases for stdWindow
  • Loading branch information
sancarn committed Jul 22, 2024
1 parent a351c01 commit 301fbba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,7 @@ Before `08/07/2021` a change log was not kept. We have retrospectively gone back
- 2024-07-04 `stdWindow` FIX - Fixedd bug where `stdWindow#Visible` would focus the window it changed visibility of. This has been fixed.
- 2024-07-04 `stdJSON` FIX - Fixed bug where `stdJSON` wasn't correctly handling strings with `"` in them.
- 2024-07-08 `stdEnumerator` FEATURE - `stdEnumerator::CreateFromDictionaryEx` added. Translates a dictionary to a Enumerator of dictionaries with key and value properties. Additionally added `stdEnumerator#groupByEx` which utilises the above.
- 2024-07-08 `stdLambda` FIX - Removed `key` from the dictionary checks in `stdLambda#stdCallByName`. Shouldn't be a breaking change, because `key` isn't a method on type `Dictionary`.
- 2024-07-08 `stdLambda` FIX - Removed `key` from the dictionary checks in `stdLambda#stdCallByName`. Shouldn't be a breaking change, because `key` isn't a method on type `Dictionary`.
- 2024-07-14 `stdWindow` FEATURE - Add `PGUP` and `PGDOWN` alias for `SendKeys`
- 2024-07-22 `stdWindow` FIX - Remove unused variable `minStackSize`.
- 2024-07-22 `stdAcc` FIX - Remove unused variable `minStackSize`.
2 changes: 1 addition & 1 deletion src/stdAcc.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ End Sub
'@returns - FindNode found at index
Private Function stackPopV(ByRef stack() As tFindNode, ByRef index As Variant) As tFindNode
Dim size As Long: size = UBound(stack) + 1
If index < size / 3 And index > minStackSize Then
If index < size / 3 Then
ReDim Preserve stack(0 To CLng(size / 2))
End If
index = index - 1
Expand Down
6 changes: 3 additions & 3 deletions src/stdWindow.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2373,7 +2373,7 @@ End Sub
'@returns - FindNode found at index
Private Function stackPopV(ByRef stack() As tFindNode, ByRef index As Variant) As tFindNode
Dim size As Long: size = UBound(stack) + 1
If index < size / 3 And index > minStackSize Then
If index < size / 3 Then
ReDim Preserve stack(0 To CLng(size / 2))
End If
index = index - 1
Expand Down Expand Up @@ -2663,8 +2663,8 @@ Private Function VKeyFromString(ByRef s As String) As EVirtualKey
Case "ACCEPT": VKeyFromString = EVirtualKey.VK_ACCEPT
Case "MODECHANGE": VKeyFromString = EVirtualKey.VK_MODECHANGE
Case "SPACE": VKeyFromString = EVirtualKey.VK_SPACE
Case "PRIOR": VKeyFromString = EVirtualKey.VK_PRIOR
Case "NEXT": VKeyFromString = EVirtualKey.VK_NEXT
Case "PGUP", "PAGEUP", "PRIOR": VKeyFromString = EVirtualKey.VK_PRIOR
Case "PGDN", "PAGEDOWN", "NEXT": VKeyFromString = EVirtualKey.VK_NEXT
Case "END": VKeyFromString = EVirtualKey.VK_END
Case "HOME": VKeyFromString = EVirtualKey.VK_HOME
Case "LEFT": VKeyFromString = EVirtualKey.VK_LEFT
Expand Down

0 comments on commit 301fbba

Please sign in to comment.