This repository was archived by the owner on Feb 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export default {
67
67
.login-menu
68
68
position absolute
69
69
right 0
70
- z-index 10
70
+ z-index 5
71
71
width 30ch
72
72
overflow visible
73
73
height 100%
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export default {
55
55
56
56
<style lang="stylus">
57
57
.modal-background
58
+ z-index 6
58
59
position absolute
59
60
left 0
60
61
top 0
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ export default {
22
22
if (button === ' settings' ) {
23
23
this .openActiveBlock ({ id: ' settings' })
24
24
} else {
25
- // setTimeout(lightdm[button], 500);
26
25
this .SET_PAGE ({ key: ' activeModal' , value: button})
27
26
}
28
27
}
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ export default {
39
39
return ' ubuntu'
40
40
} if (key .indexOf (' dde' ) > - 1 || key .indexOf (' deepin' ) > - 1 ) {
41
41
return ' deepin'
42
+ } if (key .indexOf (' kodi' ) > - 1 || key .indexOf (' kodi' ) > - 1 ) {
43
+ return ' kodi'
42
44
} if (key .indexOf (' lxde' ) > - 1 || key .indexOf (' lxqt' ) > - 1 ) {
43
45
return ' lxde'
44
46
} if (key .indexOf (' openbox' ) > - 1 || key .indexOf (' openbox' ) > - 1 ) {
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ export default {
59
59
keyPress (event ) {
60
60
const ENTER_CODE = 13
61
61
const isFocusPassword = document .querySelector (' #password:focus' )
62
+
63
+ console .log (event )
64
+
62
65
if (event .which === ENTER_CODE ) {
63
66
if (this .activeModal ) {
64
67
this .SET_PAGE ({ key: ' event' , value: { code: ' Enter' } })
@@ -71,6 +74,14 @@ export default {
71
74
}
72
75
}
73
76
77
+ if (event .altKey && event .which === 80 ) { // 80 is 'r' symbol
78
+ this .SET_PAGE ({ key: ' activeModal' , value: ' shutdown' })
79
+ } else if (event .altKey && event .which === 83 ) { // 83 is 'r' symbol
80
+ this .SET_PAGE ({ key: ' activeModal' , value: ' suspend' })
81
+ } else if (event .altKey && event .which === 82 ) { // 82 is 'r' symbol
82
+ this .SET_PAGE ({ key: ' activeModal' , value: ' restart' })
83
+ }
84
+
74
85
if (event .key === ' Escape' ) {
75
86
if (this .activeModal ) {
76
87
this .SET_PAGE ({ key: ' activeModal' , value: false })
You can’t perform that action at this time.
0 commit comments