Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor keyboard fixes #2522

Merged
merged 2 commits into from
Jul 31, 2018
Merged

Minor keyboard fixes #2522

merged 2 commits into from
Jul 31, 2018

Conversation

keveleigh
Copy link
Contributor

Overview

Instead of trying to case a negative int and failing on XAML, now we cast a large, still invalid, number.

Also, disables the Toolkit keyboard on platforms that support a system keyboard.

Changes

@@ -253,7 +253,7 @@ protected override void Awake()

// Setting the keyboardType to an undefined TouchScreenKeyboardType,
// which prevents the MRTK keyboard from triggering the system keyboard itself.
InputField.keyboardType = (TouchScreenKeyboardType)(-1);
InputField.keyboardType = (TouchScreenKeyboardType)(int.MaxValue);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MinValue? (technically you might be able to connect a lot of keyboards, but you can't connect negative keyboards!)

Copy link
Contributor Author

@keveleigh keveleigh Jul 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was changed because, when building for UWP XAML, it tries to cast the value (previously -1) into a uint when doing the enum conversion and throws an error. See: #2384

@david-c-kline david-c-kline merged commit 90355dd into microsoft:june18_dev Jul 31, 2018
@keveleigh keveleigh deleted the Keyboard branch October 8, 2018 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Legacy (HoloToolkit) Issues specific to the HoloToolkit product UX Controls - General
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants