791
社区成员
发帖
与我相关
我的任务
分享
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == 139 || keyCode == 280 || keyCode == 293) {
if (event.getRepeatCount() == 0) {
Log.v("qluerp", "tigger clicked");
methodChannel.invokeMethod("triggerClicked", null);
}
return true;
}
return super.onKeyDown(keyCode, event);
}
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
if (keyCode == 139 || keyCode == 280) {
if (event.getRepeatCount() == 0) {
// barcode2DWithSoft.stopScan();
methodChannel.invokeMethod("triggerClickedup", null);
return true;
}
}
return super.onKeyUp(keyCode, event);
}