diff --git a/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/presentation/ApplicationSettingsActivity.java b/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/presentation/ApplicationSettingsActivity.java index 2506e7103..a5f6c6180 100644 --- a/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/presentation/ApplicationSettingsActivity.java +++ b/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/presentation/ApplicationSettingsActivity.java @@ -250,6 +250,13 @@ public class ApplicationSettingsActivity extends AppCompatPreferenceActivity false); } + public static boolean getUseBackAsAltf4(Context context) + { + SharedPreferences preferences = get(context); + return preferences.getBoolean( + context.getString(R.string.preference_key_ui_use_back_as_altf4), true); + } + public static boolean getAcceptAllCertificates(Context context) { SharedPreferences preferences = get(context); diff --git a/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/presentation/SessionActivity.java b/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/presentation/SessionActivity.java index 12f192544..9230c67ca 100644 --- a/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/presentation/SessionActivity.java +++ b/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/presentation/SessionActivity.java @@ -704,8 +704,10 @@ public class SessionActivity extends AppCompatActivity // hide keyboards (if any visible) or send alt+f4 to the session if (sysKeyboardVisible || extKeyboardVisible) showKeyboard(false, false); - else + else if (ApplicationSettingsActivity.getUseBackAsAltf4(this)) + { keyboardMapper.sendAltF4(); + } } @Override public boolean onKeyLongPress(int keyCode, KeyEvent event) diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values-de/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values-de/strings.xml index 4957b7fe7..7c1ea4196 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values-de/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values-de/strings.xml @@ -126,6 +126,7 @@ Invertiere Bildlauf Touch Zeiger automatischer Bildlauf Zeige Dialog beim Beenden + Verwenden Sie die "Zurück"-Taste als Alt+F4 Energiesparen Schließe ungenutzte Verbindungen Sicherheit diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values-es/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values-es/strings.xml index 13c3ea4a2..254783974 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values-es/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values-es/strings.xml @@ -127,6 +127,7 @@ invertir desplazamiento Puntero táctil de desplazamiento automático Mostrar cuadro de diálogo en la salida + Usar el botón "atrás" como Alt+F4 Ahorro de energía Cerrar las conexiones inactivas Seguridad diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values-fr/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values-fr/strings.xml index db7540186..377b41454 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values-fr/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values-fr/strings.xml @@ -126,6 +126,7 @@ "Inverser le défilement de la souris" "Défilement automatique du pointeur tactile" "Confirmer au moment de quitter" + Utiliser le bouton "retour" comme Alt+F4 "Economie d'énergie" "Fermer les connexions inactives" "Securité" diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values-ja/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values-ja/strings.xml index bef1cf0af..0f4b60270 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values-ja/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values-ja/strings.xml @@ -128,6 +128,7 @@ Invert Scrolling Touch Pointer Auto Scroll Show Dialog on Exit + 「戻る」ボタンを Alt+F4 として使用する Power Saving Client Close idle Connections diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values-ko/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values-ko/strings.xml index e24b49d36..64e497736 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values-ko/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values-ko/strings.xml @@ -167,6 +167,7 @@ 스크롤 뒤집기 터치 포인터 자동 스크롤 종료할 때 다이얼로그 보이기 + 뒤로 버튼을 Alt+F4로 사용 절전 기능 클라이언트 사용하지 않는 연결 종료 diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values-nb-rNO/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values-nb-rNO/strings.xml index 87f7f612e..027c9e54d 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values-nb-rNO/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values-nb-rNO/strings.xml @@ -167,6 +167,7 @@ Inverter rulling Autorulling for trykkpeker Vis dialogvindu ved avslutning + Bruk "tilbake"-knappen som Alt+F4 Strømsparing Klient Lukk tilkoblinger ved lediggang diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values-nl/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values-nl/strings.xml index c12256b04..1393b16dd 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values-nl/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values-nl/strings.xml @@ -127,6 +127,7 @@ Scrollen omkeren Touch Pointer Auto Scroll Toon dialoog bij sluiten + Gebruik de "terug"-knop als Alt+F4 Energiebesparing Sluit inactieve ingen Beveiliging diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values-pt-rBR/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values-pt-rBR/strings.xml index 6f5840d83..95d8b2d6e 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values-pt-rBR/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values-pt-rBR/strings.xml @@ -167,6 +167,7 @@ Inverter a rolagem Rolagem automática do ponteiro de toque Mostrar diálogo ao sair + Usar o botão "voltar" como Alt+F4 Economia de energia Cliente Fechar as conexões inativas diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values-zh/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values-zh/strings.xml index 9eb16c802..41c19b369 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values-zh/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values-zh/strings.xml @@ -132,6 +132,7 @@ 逆向滚动 触控指针自动滚动 退出时显示会话框 + 将“返回”按钮用作 Alt+F4 省电 客户端 关闭空闲连接 diff --git a/client/Android/Studio/freeRDPCore/src/main/res/values/strings.xml b/client/Android/Studio/freeRDPCore/src/main/res/values/strings.xml index 4c1abd52b..e9820a050 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/values/strings.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/values/strings.xml @@ -167,6 +167,7 @@ Invert Scrolling Touch Pointer Auto Scroll Show Dialog on Exit + Use \"back\" button as Alt+F4 Power Saving Client Close idle Connections @@ -224,6 +225,7 @@ ui.swap_mouse_buttons ui.hide_zoom_controls ui.hide_action_bar + ui.use_back_as_altf4 OFF FATAL diff --git a/client/Android/Studio/freeRDPCore/src/main/res/xml/settings_app_ui.xml b/client/Android/Studio/freeRDPCore/src/main/res/xml/settings_app_ui.xml index 9f1b2e483..a4daf6152 100644 --- a/client/Android/Studio/freeRDPCore/src/main/res/xml/settings_app_ui.xml +++ b/client/Android/Studio/freeRDPCore/src/main/res/xml/settings_app_ui.xml @@ -27,4 +27,8 @@ android:defaultValue="true" android:key="@string/preference_key_ui_hide_action_bar" android:title="@string/settings_ui_hide_action_bar" /> + \ No newline at end of file