Browse Source

Better naming

David Catuhe 7 years ago
parent
commit
b6deb48315
2 changed files with 3 additions and 3 deletions
  1. 2 2
      gui/src/2D/advancedDynamicTexture.ts
  2. 1 1
      gui/src/2D/controls/inputText.ts

+ 2 - 2
gui/src/2D/advancedDynamicTexture.ts

@@ -27,7 +27,7 @@ export interface IFocusableControl {
      * @param pointerId defines the unique id of the current pointer
      * @returns a boolean indicating if the control wants to keep the focus
      */
-    keepFocus(pointerId: number): boolean;
+    wantTokeepFocus(pointerId: number): boolean;
 }
 
 /**
@@ -666,7 +666,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
                 delete this._lastControlDown[pointerId];
 
                 if (this.focusedControl) {
-                    if (!this.focusedControl.keepFocus(pointerId)) {
+                    if (!this.focusedControl.wantTokeepFocus(pointerId)) {
                         this.focusedControl = null;
                     }
                 }

+ 1 - 1
gui/src/2D/controls/inputText.ts

@@ -281,7 +281,7 @@ export class InputText extends Control implements IFocusableControl {
      * @param pointerId defines the unique id of the current pointer generating the focus change
      * @returns a boolean indicating if the control wants to keep the focus
      */
-    public keepFocus(pointerId: number): boolean {
+    public wantTokeepFocus(pointerId: number): boolean {
         if (!this._connectedVirtualKeyboard) {
             return false;
         }