| 878 | } |
| 879 | |
| 880 | void NanaBox::RemoteDesktopUpdateKeyboardConfiguration( |
| 881 | winrt::com_ptr<NanaBox::RdpClient> const& Instance, |
| 882 | NanaBox::KeyboardConfiguration& Configuration) |
| 883 | { |
| 884 | try |
| 885 | { |
| 886 | Instance->KeyboardHookMode( |
| 887 | Configuration.RedirectKeyCombinations ? 1 : 2); |
| 888 | } |
| 889 | catch (...) |
| 890 | { |
| 891 | Configuration.RedirectKeyCombinations = |
| 892 | (Instance->KeyboardHookMode() == 1); |
| 893 | } |
| 894 | |
| 895 | try |
| 896 | { |
| 897 | Instance->HotKeyFullScreen( |
| 898 | Configuration.FullScreenHotkey); |
| 899 | } |
| 900 | catch (...) |
| 901 | { |
| 902 | Configuration.FullScreenHotkey = |
| 903 | Instance->HotKeyFullScreen(); |
| 904 | } |
| 905 | |
| 906 | try |
| 907 | { |
| 908 | Instance->HotKeyCtrlEsc( |
| 909 | Configuration.CtrlEscHotkey); |
| 910 | } |
| 911 | catch (...) |
| 912 | { |
| 913 | Configuration.CtrlEscHotkey = |
| 914 | Instance->HotKeyCtrlEsc(); |
| 915 | } |
| 916 | |
| 917 | try |
| 918 | { |
| 919 | Instance->HotKeyAltEsc( |
| 920 | Configuration.AltEscHotkey); |
| 921 | } |
| 922 | catch (...) |
| 923 | { |
| 924 | Configuration.AltEscHotkey = |
| 925 | Instance->HotKeyAltEsc(); |
| 926 | } |
| 927 | |
| 928 | try |
| 929 | { |
| 930 | Instance->HotKeyAltTab( |
| 931 | Configuration.AltTabHotkey); |
| 932 | } |
| 933 | catch (...) |
| 934 | { |
| 935 | Configuration.AltTabHotkey = |
| 936 | Instance->HotKeyAltTab(); |
| 937 | } |
nothing calls this directly
no test coverage detected