This repository was archived by the owner on Feb 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export default {
6767.login-menu
6868 position absolute
6969 right 0
70- z-index 10
70+ z-index 5
7171 width 30ch
7272 overflow visible
7373 height 100%
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export default {
5555
5656<style lang="stylus">
5757.modal-background
58+ z-index 6
5859 position absolute
5960 left 0
6061 top 0
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ export default {
2222 if (button === ' settings' ) {
2323 this .openActiveBlock ({ id: ' settings' })
2424 } else {
25- // setTimeout(lightdm[button], 500);
2625 this .SET_PAGE ({ key: ' activeModal' , value: button})
2726 }
2827 }
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ export default {
3939 return ' ubuntu'
4040 } if (key .indexOf (' dde' ) > - 1 || key .indexOf (' deepin' ) > - 1 ) {
4141 return ' deepin'
42+ } if (key .indexOf (' kodi' ) > - 1 || key .indexOf (' kodi' ) > - 1 ) {
43+ return ' kodi'
4244 } if (key .indexOf (' lxde' ) > - 1 || key .indexOf (' lxqt' ) > - 1 ) {
4345 return ' lxde'
4446 } 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 {
5959 keyPress (event ) {
6060 const ENTER_CODE = 13
6161 const isFocusPassword = document .querySelector (' #password:focus' )
62+
63+ console .log (event )
64+
6265 if (event .which === ENTER_CODE ) {
6366 if (this .activeModal ) {
6467 this .SET_PAGE ({ key: ' event' , value: { code: ' Enter' } })
@@ -71,6 +74,14 @@ export default {
7174 }
7275 }
7376
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+
7485 if (event .key === ' Escape' ) {
7586 if (this .activeModal ) {
7687 this .SET_PAGE ({ key: ' activeModal' , value: false })
You can’t perform that action at this time.
0 commit comments