OSDN Git Service

[更新]:コントロール+Aで全選択&途中入力ごescしたあとに再度入力しようとしたときに全選択するように修正
[alterlinux/lightdm-webkit2-theme-alter.git] / js / splashscreen.js
index 46ab69d..5e1cd69 100644 (file)
@@ -359,6 +359,7 @@ class SplashScreen {
         case 13: // Enter key
         if (this._state == "closed")
         document.getElementById("inputPassword").focus();
+        $('#inputPassword').select();
         this._open();
         break;
         case 27: // ESC key
@@ -369,6 +370,7 @@ class SplashScreen {
         this._close();}
         else if (this._state == "closed"){
         document.getElementById("inputPassword").focus();
+        $('#inputPassword').select();
         this._open();}
         break;
         default: