Skip to content

Commit

Permalink
#673 Improved documentation and added private visibility for GetScope().
Browse files Browse the repository at this point in the history
  • Loading branch information
koschke committed Nov 24, 2023
1 parent c08226d commit 092727c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assets/SEE/Controls/KeyBindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ private static KeyCode Register(KeyCode keyCode, Scope scope, string helpMessage
return keyCode;
}
/// <summary>
/// Gives back the scope of a specific value in bindings
/// Returns the scope of given key-binding description <paramref name="value"/>.
/// </summary>
/// <param name="value">the value, from which to extract the scope</param>
/// <param name="value">the key-binding description from which to extract the scope</param>
/// <returns>the scope</returns>
static string GetScope(string value)
private static string GetScope(string value)
{
// Extract the scope part from the string value
// Extract the scope part from the string value.
int startIndex = value.IndexOf("[") + 1;
int endIndex = value.IndexOf("]");
return value[startIndex..endIndex];
Expand Down

0 comments on commit 092727c

Please sign in to comment.