File tree 2 files changed +9
-9
lines changed
src/ansibleguy-webui/aw/static/js
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 6
6
4 - Config
7
7
==========
8
8
9
- **Tip **: You can use the key-combination :code: `SHIFT + S ` to quick-safe your changes.
9
+ **Tip **: You can use the key-combination :code: `ALT + S ` to quick-safe your changes.
10
10
11
11
WebUI
12
12
*****
Original file line number Diff line number Diff line change @@ -238,8 +238,8 @@ function capitalizeFirstLetter(string) {
238
238
return string . charAt ( 0 ) . toUpperCase ( ) + string . slice ( 1 ) ;
239
239
}
240
240
241
- pressed_shift = false ;
242
- function shift_s_handler ( ) {
241
+ pressed_alt = false ;
242
+ function alt_s_handler ( ) {
243
243
for ( let f of document . getElementsByTagName ( 'form' ) ) {
244
244
if ( f . action . includes ( '/api' ) ) {
245
245
// NOTE: form.submit is not working as we want to catch it later on
@@ -549,16 +549,16 @@ $( document ).ready(function() {
549
549
apiFsExists ( jQuery ( this ) ) ;
550
550
} ) ;
551
551
$ ( document ) . on ( "keyup" , function ( e ) {
552
- if ( e . keyCode == 16 ) {
553
- pressed_shift = false ;
552
+ if ( e . keyCode == 18 ) {
553
+ pressed_alt = false ;
554
554
}
555
555
} ) ;
556
556
$ ( document ) . on ( "keydown" , function ( e ) {
557
- if ( e . keyCode == 16 ) {
558
- pressed_shift = true ;
557
+ if ( e . keyCode == 18 ) {
558
+ pressed_alt = true ;
559
559
}
560
- if ( pressed_shift === true && e . keyCode == 83 ) {
561
- shift_s_handler ( ) ;
560
+ if ( pressed_alt === true && e . keyCode == 83 ) {
561
+ alt_s_handler ( ) ;
562
562
}
563
563
} ) ;
564
564
} ) ;
You can’t perform that action at this time.
0 commit comments