зеркало из https://github.com/mozilla/pluotsorbet.git
Implement getKeyName native
This commit is contained in:
Родитель
28bb1bef1b
Коммит
52e82c51c4
6
midp.js
6
midp.js
|
@ -518,6 +518,7 @@ Native["javax/microedition/lcdui/ImageDataFactory.createMutableImageData.(Ljavax
|
|||
data.class.getField("height", "I").set(data, height);
|
||||
data.class.getField("nativeImageData", "I").set(data, img);
|
||||
}
|
||||
|
||||
Native["com/sun/midp/chameleon/layers/SoftButtonLayer.isNativeSoftButtonLayerSupported0.()Z"] = function(ctx, stack) {
|
||||
stack.push(0);
|
||||
}
|
||||
|
@ -1216,6 +1217,11 @@ Native["javax/microedition/lcdui/KeyConverter.getSystemKey.(I)I"] = function(ctx
|
|||
}
|
||||
}
|
||||
|
||||
Native["javax/microedition/lcdui/KeyConverter.getKeyName.(I)Ljava/lang/String;"] = function(ctx, stack) {
|
||||
var keyCode = stack.pop();
|
||||
stack.push(CLASSES.newString(String.fromCharCode(keyCode)));
|
||||
}
|
||||
|
||||
Native["com/sun/midp/io/j2me/push/ConnectionRegistry.checkInByMidlet0.(ILjava/lang/String;)V"] = function(ctx, stack) {
|
||||
var className = stack.pop(), suiteId = stack.pop();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче