babylonjs-gui 5.15.0 → 5.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/babylon.gui.d.ts CHANGED
@@ -4053,7 +4053,7 @@ declare module BABYLON.GUI {
4053
4053
  private _connectedInputTexts;
4054
4054
  private _onKeyPressObserver;
4055
4055
  /** Gets the input text control currently attached to the keyboard */
4056
- get connectedInputText(): BABYLON.Nullable<InputText>;
4056
+ get connectedInputText(): BABYLON.Nullable<InputText | InputTextArea>;
4057
4057
  /**
4058
4058
  * Connects the keyboard with an input text control
4059
4059
  *
package/babylon.gui.js CHANGED
@@ -16509,6 +16509,8 @@ __webpack_require__.r(__webpack_exports__);
16509
16509
  /* harmony import */ var core_Misc_observable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__);
16510
16510
  /* harmony import */ var _stackPanel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stackPanel */ "../../../lts/gui/dist/2D/controls/stackPanel.js");
16511
16511
  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./button */ "../../../lts/gui/dist/2D/controls/button.js");
16512
+ /* harmony import */ var _inputTextArea__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputTextArea */ "../../../lts/gui/dist/2D/controls/inputTextArea.js");
16513
+
16512
16514
 
16513
16515
 
16514
16516
 
@@ -16670,13 +16672,28 @@ var VirtualKeyboard = /** @class */ (function (_super) {
16670
16672
  _this.applyShiftState(_this.shiftState);
16671
16673
  return;
16672
16674
  case "\u2190":
16673
- _this._currentlyConnectedInputText.processKey(8);
16675
+ if (_this._currentlyConnectedInputText instanceof _inputTextArea__WEBPACK_IMPORTED_MODULE_4__.InputTextArea) {
16676
+ _this._currentlyConnectedInputText.alternativeProcessKey("Backspace");
16677
+ }
16678
+ else {
16679
+ _this._currentlyConnectedInputText.processKey(8);
16680
+ }
16674
16681
  return;
16675
16682
  case "\u21B5":
16676
- _this._currentlyConnectedInputText.processKey(13);
16683
+ if (_this._currentlyConnectedInputText instanceof _inputTextArea__WEBPACK_IMPORTED_MODULE_4__.InputTextArea) {
16684
+ _this._currentlyConnectedInputText.alternativeProcessKey("Enter");
16685
+ }
16686
+ else {
16687
+ _this._currentlyConnectedInputText.processKey(13);
16688
+ }
16677
16689
  return;
16678
16690
  }
16679
- _this._currentlyConnectedInputText.processKey(-1, _this.shiftState ? key.toUpperCase() : key);
16691
+ if (_this._currentlyConnectedInputText instanceof _inputTextArea__WEBPACK_IMPORTED_MODULE_4__.InputTextArea) {
16692
+ _this._currentlyConnectedInputText.alternativeProcessKey("", _this.shiftState ? key.toUpperCase() : key);
16693
+ }
16694
+ else {
16695
+ _this._currentlyConnectedInputText.processKey(-1, _this.shiftState ? key.toUpperCase() : key);
16696
+ }
16680
16697
  if (_this.shiftState === 1) {
16681
16698
  _this.shiftState = 0;
16682
16699
  _this.applyShiftState(_this.shiftState);