• R/O
  • HTTP
  • SSH
  • HTTPS

lightdm-webkit2-theme-alter: 提交

GitHubのミラーです
https://github.com/FascodeNet/lightdm-webkit2-theme-alter


Commit MetaInfo

修订版6e66dc58ad7b97834dcf11ca4e9ed9b4043a8a4e (tree)
时间2020-03-03 14:57:06
作者naoko1010hh <naoko561010@gmai...>
Commiternaoko1010hh

Log Message

[更新]:コントロール+Aで全選択&途中入力ごescしたあとに再度入力しようとしたときに全選択するように修正

更改概述

差异

--- a/js/splashscreen.js
+++ b/js/splashscreen.js
@@ -359,6 +359,7 @@ class SplashScreen {
359359 case 13: // Enter key
360360 if (this._state == "closed")
361361 document.getElementById("inputPassword").focus();
362+ $('#inputPassword').select();
362363 this._open();
363364 break;
364365 case 27: // ESC key
@@ -369,6 +370,7 @@ class SplashScreen {
369370 this._close();}
370371 else if (this._state == "closed"){
371372 document.getElementById("inputPassword").focus();
373+ $('#inputPassword').select();
372374 this._open();}
373375 break;
374376 default:
--- a/js/theme.js
+++ b/js/theme.js
@@ -44,7 +44,7 @@ $(greeter).on("ready", function(e) {
4444 });
4545
4646 // Bind listener to the password box
47- $password.keypress((e) => {
47+ $password.keydown((e) => {
4848 // user has typed, remove placeholder and invalid class
4949 $password.prop("placeholder", "").removeClass("invalid");
5050
@@ -58,6 +58,11 @@ $(greeter).on("ready", function(e) {
5858 greeter.auth(username, pass);
5959 }
6060 }
61+
62+ else if (e.keyCode==65 && e.ctrlKey) {
63+ $('#inputPassword').select();
64+ }
65+ console.log(e.ctrlKey);
6166
6267 });
6368
Show on old repository browser