Compare commits

..

1 Commits

Author SHA1 Message Date
Yuriy Liskov
95ab858296 bugfixes 2018-08-04 18:19:57 +03:00
2 changed files with 4 additions and 3 deletions

View File

@@ -8,8 +8,8 @@ android {
applicationId "org.liskovsoft.leankeykeyboard.pro"
minSdkVersion project.properties.minSdkVersion
targetSdkVersion project.properties.targetSdkVersion
versionCode 71
versionName "4.3.21"
versionCode 72
versionName "4.3.22"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

View File

@@ -653,7 +653,8 @@ public class LeanbackKeyboardController implements LeanbackKeyboardContainer.Voi
public boolean onKeyDown(int keyCode, @NonNull KeyEvent event) {
//greater than zero means it is a physical keyboard.
//we also want to hide the view if it's a glyph (for example, not physical volume-up key)
if (event.getDeviceId() > 0 && event.isPrintingKey()) onPhysicalKeyboardKeyPressed();
//if (event.getDeviceId() > 0 && event.isPrintingKey()) onPhysicalKeyboardKeyPressed();
if (event.isPrintingKey()) onPhysicalKeyboardKeyPressed();
mDownFocus.set(mContainer.getCurrFocus());
if (mSpaceTracker != null && mSpaceTracker.onKeyDown(keyCode, event)) {