Jelajahi Sumber

Update virtualKeyboard.ts

aWeirdo 7 tahun lalu
induk
melakukan
4976bd34cb
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      gui/src/controls/virtualKeyboard.ts

+ 1 - 2
gui/src/controls/virtualKeyboard.ts

@@ -139,8 +139,7 @@ module BABYLON.GUI {
                         this._connectedInputText.processKey(13);
                         return;                        
                 }
-
-                this._connectedInputText.processKey(-1, key);
+                this._connectedInputText.processKey(-1, (this.shiftState ? key.toUpperCase() : key));
                 
                 if(this.shiftState === 1){
                     this.shiftState = 0;