Browse Source

Select the entire text when changing a param's name

Leonardo Jeanteur 4 years ago
parent
commit
507a97a9b8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hide/view/shadereditor/ShaderEditor.hx

+ 2 - 0
hide/view/shadereditor/ShaderEditor.hx

@@ -727,6 +727,8 @@ class ShaderEditor extends hide.view.Graph {
 				}
 			}
 		});
+		inputTitle.on("focus", function() { inputTitle.select(); } );
+
 		elt.find(".header").on("click", function() {
 			toggleParameter(elt);
 		});