diff options
author | leonid lokhmatov, Luxoft <zaqqqqqqqq@gmail.com> | 2021-02-20 00:30:58 +0200 |
---|---|---|
committer | leonid lokhmatov, Luxoft <zaqqqqqqqq@gmail.com> | 2021-02-20 00:30:58 +0200 |
commit | 9cab7e908ca183baa336cbf9e3a490cb12889b0e (patch) | |
tree | 335cc8d61af93319f1e523819b00e148b8dd779e | |
parent | 6d598d1ab6d48b551a6ffdd0d878d55ef2701f5b (diff) | |
download | sdl_ios-9cab7e908ca183baa336cbf9e3a490cb12889b0e.tar.gz |
SDL0238 'Keyboard Enhancements/r4': add one more lost comment
-rw-r--r-- | SmartDeviceLink/private/SDLWindowCapability+ScreenManagerExtensions.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/SDLWindowCapability+ScreenManagerExtensions.m b/SmartDeviceLink/private/SDLWindowCapability+ScreenManagerExtensions.m index a17dac200..1509e8b92 100644 --- a/SmartDeviceLink/private/SDLWindowCapability+ScreenManagerExtensions.m +++ b/SmartDeviceLink/private/SDLWindowCapability+ScreenManagerExtensions.m @@ -84,6 +84,7 @@ NSUInteger numConfigurableKeys = selectedLayoutCapability.numConfigurableKeys.unsignedIntegerValue; if (modifiedKeyboardConfiguration.customKeys.count > numConfigurableKeys) { SDLLogW(@"%lu custom keys set, but the selected layout: %@ only supports %lu. Dropping the rest.", (unsigned long)modifiedKeyboardConfiguration.customKeys.count, modifiedKeyboardConfiguration.keyboardLayout, (unsigned long)numConfigurableKeys); + // If there are more custom keys than are allowed for the selected keyboard layout, we need to trim the number of keys to only use the first n number of custom keys, where n is the number of allowed custom keys for that layout. modifiedKeyboardConfiguration.customKeys = [modifiedKeyboardConfiguration.customKeys subarrayWithRange:NSMakeRange(0, numConfigurableKeys)]; } } |