Skip to content

Commit

Permalink
Fix row array and backspace
Browse files Browse the repository at this point in the history
  • Loading branch information
adgad committed Jan 25, 2019
1 parent 9deb8a8 commit e6bced4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions app/src/main/java/com/adgad/kboard/KCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ public void d(int n) {

if(selected == null || selected.length() == 0 ) {
buffer = (inputConnection.getTextBeforeCursor(n, 0).toString());
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
inputConnection.deleteSurroundingTextInCodePoints(n, 0);
} else {
inputConnection.deleteSurroundingText(n,0);
}
inputConnection.deleteSurroundingText(n,0);
} else {
buffer = selected.toString();
inputConnection.commitText("", 1);
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@
<string-array name="rows">
<item>"1"</item>
<item>"3"</item>
<item>"4"</item>
<item>"5"</item>
<item>"6"</item>
<item>"7"</item>
<item>"8"</item>
</string-array>
Expand Down

0 comments on commit e6bced4

Please sign in to comment.