@@ -973,24 +973,25 @@ class ScreenOperatorAccessibilityService : AccessibilityService() {
973973 }
974974
975975 /* *
976- * Press the Enter key
977- */
978- fun pressEnterKey () {
979- Log .d(TAG , " Pressing Enter key" )
980- try {
981- val result = performGlobalAction(AccessibilityService .GLOBAL_ACTION_ENTER )
982- if (result) {
983- Log .d(TAG , " Successfully pressed Enter key" )
984- showToast(" Enter-Taste erfolgreich gedrückt" , false )
985- } else {
986- Log .e(TAG , " Failed to press Enter key" )
987- showToast(" Fehler beim Drücken der Enter-Taste" , true )
988- }
989- } catch (e: Exception ) {
990- Log .e(TAG , " Error pressing Enter key: ${e.message} " )
991- showToast(" Fehler beim Drücken der Enter-Taste: ${e.message} " , true )
976+ * Press the Enter key
977+ */
978+ fun pressEnterKey () {
979+ Log .d(TAG , " Pressing Enter key" )
980+ try {
981+ val result = performGlobalAction(AccessibilityService .GLOBAL_ACTION_ENTER )
982+ if (result) {
983+ Log .d(TAG , " Successfully pressed Enter key" )
984+ showToast(" Enter-Taste erfolgreich gedrückt" , false )
985+ } else {
986+ Log .e(TAG , " Failed to press Enter key" )
987+ showToast(" Fehler beim Drücken der Enter-Taste" , true )
992988 }
989+ } catch (e: Exception ) {
990+ Log .e(TAG , " Error pressing Enter key: ${e.message} " )
991+ showToast(" Fehler beim Drücken der Enter-Taste: ${e.message} " , true )
993992 }
993+ }
994+
994995
995996 /* *
996997 * Open an app by package name
0 commit comments