summaryrefslogtreecommitdiff
path: root/src/us/minak/IMEService.java
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-05-06 22:12:35 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-05-06 22:12:35 -0400
commitb5f59b61cbd5d0e1b44d948ca4bd897fdb1fe525 (patch)
tree7606a363f085b5c6d83856b3f1a9d38ee47617ea /src/us/minak/IMEService.java
parentb14681ff253675b4839d4411903f2180481eb3bb (diff)
Clean up, make the GestureOverlayView take up the whole area
Diffstat (limited to 'src/us/minak/IMEService.java')
-rw-r--r--src/us/minak/IMEService.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/us/minak/IMEService.java b/src/us/minak/IMEService.java
index 21bd159..587135c 100644
--- a/src/us/minak/IMEService.java
+++ b/src/us/minak/IMEService.java
@@ -35,17 +35,6 @@ public class IMEService extends InputMethodService {
}
});
- penboardView.setOnBackspacePressedListener(new OnBackspacePressedListener() {
- @Override
- public void backspacePressed(boolean isLongClick) {
- if (isLongClick) {
- deleteLastWord();
- } else {
- getCurrentInputConnection().deleteSurroundingText(1, 0);
- }
- }
- });
-
mPenboardView = penboardView;
return penboardView;
}
@@ -60,22 +49,4 @@ public class IMEService extends InputMethodService {
}
}
}
-
- /**
- * Deletes one word before the cursor.
- */
- private void deleteLastWord() {
- final int charactersToGet = 20;
- final String splitRegexp = " ";
-
- // delete trailing spaces
- while (getCurrentInputConnection().getTextBeforeCursor(1, 0).toString().equals(splitRegexp)) {
- getCurrentInputConnection().deleteSurroundingText(1, 0);
- }
-
- // delete last word letters
- final String[] words = getCurrentInputConnection().getTextBeforeCursor(charactersToGet, 0).toString()
- .split(splitRegexp);
- getCurrentInputConnection().deleteSurroundingText(words[words.length - 1].length(), 0);
- }
}