@@ -521,17 +521,12 @@ impl Command for PushKeyboardEnhancementFlags {
521
521
522
522
#[ cfg( windows) ]
523
523
fn execute_winapi ( & self ) -> std:: io:: Result < ( ) > {
524
- use std:: io;
525
-
526
- Err ( io:: Error :: new (
527
- io:: ErrorKind :: Unsupported ,
528
- "Keyboard progressive enhancement not implemented for the legacy Windows API." ,
529
- ) )
524
+ Ok ( ( ) )
530
525
}
531
526
532
527
#[ cfg( windows) ]
533
528
fn is_ansi_code_supported ( & self ) -> bool {
534
- false
529
+ true
535
530
}
536
531
}
537
532
@@ -550,17 +545,12 @@ impl Command for PopKeyboardEnhancementFlags {
550
545
551
546
#[ cfg( windows) ]
552
547
fn execute_winapi ( & self ) -> std:: io:: Result < ( ) > {
553
- use std:: io;
554
-
555
- Err ( io:: Error :: new (
556
- io:: ErrorKind :: Unsupported ,
557
- "Keyboard progressive enhancement not implemented for the legacy Windows API." ,
558
- ) )
548
+ Ok ( ( ) )
559
549
}
560
550
561
551
#[ cfg( windows) ]
562
552
fn is_ansi_code_supported ( & self ) -> bool {
563
- false
553
+ true
564
554
}
565
555
}
566
556
@@ -577,17 +567,12 @@ impl Command for EnableThemeModeUpdates {
577
567
578
568
#[ cfg( windows) ]
579
569
fn execute_winapi ( & self ) -> std:: io:: Result < ( ) > {
580
- use std:: io;
581
-
582
- Err ( io:: Error :: new (
583
- io:: ErrorKind :: Unsupported ,
584
- "Theme mode updates are not implemented for the legacy Windows API" ,
585
- ) )
570
+ Ok ( ( ) )
586
571
}
587
572
588
573
#[ cfg( windows) ]
589
574
fn is_ansi_code_supported ( & self ) -> bool {
590
- false
575
+ true
591
576
}
592
577
}
593
578
@@ -604,17 +589,12 @@ impl Command for DisableThemeModeUpdates {
604
589
605
590
#[ cfg( windows) ]
606
591
fn execute_winapi ( & self ) -> std:: io:: Result < ( ) > {
607
- use std:: io;
608
-
609
- Err ( io:: Error :: new (
610
- io:: ErrorKind :: Unsupported ,
611
- "Theme mode updates are not implemented for the legacy Windows API" ,
612
- ) )
592
+ Ok ( ( ) )
613
593
}
614
594
615
595
#[ cfg( windows) ]
616
596
fn is_ansi_code_supported ( & self ) -> bool {
617
- false
597
+ true
618
598
}
619
599
}
620
600
0 commit comments