File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -288,16 +288,7 @@ var Gmail = function() {
288
288
}
289
289
}
290
290
291
- if ( flag_value !== undefined ) {
292
- var values = {
293
- '0' : true ,
294
- '1' : false
295
- }
296
-
297
- check = values [ flag_value ] ;
298
- }
299
-
300
- return check ;
291
+ return flag_value == '1' ;
301
292
}
302
293
303
294
@@ -764,7 +755,7 @@ var Gmail = function() {
764
755
765
756
api . observe . shortcuts = function ( action , callback ) {
766
757
var cb_wrapper = function ( e ) {
767
- if ( api . tracker . shortcut_actions [ action ] . key . indexOf ( e . which ) != - 1 ) {
758
+ if ( api . tracker . shortcut_actions [ action ] . keys . indexOf ( e . which ) != - 1 ) {
768
759
if ( ! ( document . activeElement . nodeName == 'INPUT' || document . activeElement . nodeName == 'TEXTAREA' ||
769
760
( document . activeElement . attributes . contenteditable != undefined &&
770
761
document . activeElement . attributes . contenteditable . value == 'true' ) ) ) {
@@ -789,7 +780,7 @@ var Gmail = function() {
789
780
790
781
791
782
api . tracker . shortcut_actions = {
792
- "reply" : { "keys" : [ 114 ] }
783
+ "reply" : { "keys" : [ 114 , 97 ] }
793
784
} ;
794
785
795
786
You can’t perform that action at this time.
0 commit comments