diff --git a/README.md b/README.md index 9c52120..815f542 100644 --- a/README.md +++ b/README.md @@ -224,10 +224,15 @@ implemented: * Ctrl+Shift+E – View mode * Ctrl+F – Search * Ctrl+Shift+F – Close search + * Ctrl+G – Go to * Ctrl+N – New file * Ctrl+O – Open file * Ctrl+S – Save file * Ctrl+Shift+S – Save as + * Ctrl++ – Increase text size + * Ctrl+- – Decrease text size + * F3 – Find next + * F10 – Show menu ### SD cards Android allows removable SD cards to be used like a USB stick or as diff --git a/src/main/java/org/billthefarmer/editor/Editor.java b/src/main/java/org/billthefarmer/editor/Editor.java index 0be5dde..14efef9 100644 --- a/src/main/java/org/billthefarmer/editor/Editor.java +++ b/src/main/java/org/billthefarmer/editor/Editor.java @@ -1234,13 +1234,14 @@ public boolean onKeyDown(int keyCode, KeyEvent event) break; // Increase text size case KeyEvent.KEYCODE_PLUS: + case KeyEvent.KEYCODE_EQUALS: size += 2; size = Math.max(TINY, Math.min(size, HUGE)); textView.setTextSize(size); break; // Decrease text size case KeyEvent.KEYCODE_MINUS: - size += 2; + size -= 2; size = Math.max(TINY, Math.min(size, HUGE)); textView.setTextSize(size); break; @@ -1265,10 +1266,14 @@ public boolean onKeyDown(int keyCode, KeyEvent event) // Menu case KeyEvent.KEYCODE_F10: openOptionsMenu(); + break; + + default: + return super.onKeyDown(keyCode, event); } - } - return super.onKeyDown(keyCode, event); + return true; + } } // editClicked