We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd55f4 commit 950bc0cCopy full SHA for 950bc0c
services/views/js/app.js
@@ -26,6 +26,9 @@ var App = {
26
this.urlBar = document.getElementById('url-bar');
27
this.messageArea = document.getElementById('message-area');
28
29
+ // Handle focus on URL bar
30
+ this.urlBar.addEventListener('focus', this.handleFocus.bind(this));
31
+
32
// Handle submission of URL bar
33
controls.addEventListener('submit', this.handleSubmit.bind(this));
34
this.checkForPassword().then(()=> {
@@ -92,6 +95,16 @@ var App = {
92
95
});
93
96
},
94
97
98
+ /**
99
+ * Handle focus on URL bar.
100
+ *
101
+ * @param {Event} e The focus event.
102
+ */
103
+ handleFocus: function(e) {
104
+ // Select all text
105
+ this.urlBar.select();
106
+ },
107
108
/**
109
* Get the current URL displayed by the kiosk.
110
*
0 commit comments