File tree Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 45
45
Continue
46
46
</b-button >
47
47
</span >
48
- <div class =" btn-group-toggle btn-group" >
48
+ <div class =" btn-group-toggle btn-group" v-hotkey = " keymapToggleAutoRef " >
49
49
<label v-b-tooltip.hover
50
- title =" Enable automatic continuation based on game events"
50
+ : title =" ' Enable automatic continuation based on game events (' + Object.keys(keymapToggleAutoRef)[0] + ')' "
51
51
:class =" {btn:true, 'btn-secondary': true, active: autoContinue}"
52
52
@click =" setAutoContinue(true)" >
53
53
Auto
54
54
</label >
55
55
<label v-b-tooltip.hover
56
- title =" Disable automatic continuation based on game events"
56
+ : title =" ' Disable automatic continuation based on game events (' + Object.keys(keymapToggleAutoRef)[0] + ')' "
57
57
:class =" {btn:true, 'btn-secondary': true, active: !autoContinue}"
58
58
@click =" setAutoContinue(false)" >
59
59
Manual
92
92
},
93
93
keymapStop () {
94
94
return {
95
- ' numpad 0 ' : () => {
95
+ ' ctrl+alt+ numpad 0' : () => {
96
96
if (! this .$refs .btnStop .disabled ) {
97
97
this .send (' stop' )
98
98
}
101
101
},
102
102
keymapForceStart () {
103
103
return {
104
- ' numpad 5 ' : () => {
104
+ ' ctrl+alt+ numpad 5' : () => {
105
105
if (! this .$refs .btnForceStart .disabled ) {
106
106
this .send (' forceStart' )
107
107
}
110
110
},
111
111
keymapNormalStart () {
112
112
return {
113
- ' numpad - ' : () => {
113
+ ' ctrl+alt+ numpad 8 ' : () => {
114
114
if (! this .$refs .btnNormalStart .disabled ) {
115
115
this .send (' normalStart' )
116
116
}
119
119
},
120
120
keymapContinue () {
121
121
return {
122
- ' numpad + ' : () => {
122
+ ' ctrl+alt+space ' : () => {
123
123
if (! this .$refs .btnContinue .disabled ) {
124
124
this .triggerContinue ()
125
125
}
126
126
}
127
127
}
128
128
},
129
+ keymapToggleAutoRef () {
130
+ return {
131
+ ' ctrl+alt+numpad 2 ' : () => {
132
+ this .setAutoContinue (! this .autoContinue )
133
+ }
134
+ }
135
+ },
129
136
state () {
130
137
return this .$store .state .refBoxState
131
138
},
Original file line number Diff line number Diff line change 90
90
},
91
91
keymapKickoff () {
92
92
if (this .teamColor === ' Yellow' ) {
93
- return {' numpad 1' : this .sendKickoff };
93
+ return {' ctrl+alt+ numpad 1' : this .sendKickoff };
94
94
} else if (this .teamColor === ' Blue' ) {
95
- return {' numpad 3' : this .sendKickoff };
95
+ return {' ctrl+alt+ numpad 3' : this .sendKickoff };
96
96
}
97
97
},
98
98
keymapDirect () {
99
99
if (this .teamColor === ' Yellow' ) {
100
- return {' numpad 7' : this .sendDirect };
100
+ return {' ctrl+alt+ numpad 7' : this .sendDirect };
101
101
} else if (this .teamColor === ' Blue' ) {
102
- return {' numpad 9' : this .sendDirect };
102
+ return {' ctrl+alt+ numpad 9' : this .sendDirect };
103
103
}
104
104
},
105
105
keymapIndirect () {
106
106
if (this .teamColor === ' Yellow' ) {
107
- return {' numpad 4' : this .sendIndirect };
107
+ return {' ctrl+alt+ numpad 4' : this .sendIndirect };
108
108
} else if (this .teamColor === ' Blue' ) {
109
- return {' numpad 6' : this .sendIndirect };
109
+ return {' ctrl+alt+ numpad 6' : this .sendIndirect };
110
110
}
111
111
},
112
112
state () {
You can’t perform that action at this time.
0 commit comments