Skip to content

Commit

Permalink
Merge pull request vx#118 from jklein24/fontsize
Browse files Browse the repository at this point in the history
  • Loading branch information
kruton committed Aug 7, 2015
2 parents 7f6d27a + f46527e commit 25315e3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/src/main/java/org/connectbot/service/TerminalKeyListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,20 @@ public boolean onKey(View v, int keyCode, KeyEvent event) {
return true;
}

if ((keyCode == KeyEvent.KEYCODE_EQUALS
&& (derivedMetaState & HC_META_CTRL_ON) != 0
&& (derivedMetaState & KeyEvent.META_SHIFT_ON) != 0)
|| (keyCode == KeyEvent.KEYCODE_PLUS
&& (derivedMetaState & HC_META_CTRL_ON) != 0)) {
bridge.increaseFontSize();
return true;
}

if (keyCode == KeyEvent.KEYCODE_MINUS && (derivedMetaState & HC_META_CTRL_ON) != 0) {
bridge.decreaseFontSize();
return true;
}

// Ask the system to use the keymap to give us the unicode character for this key,
// with our derived modifier state applied.
int uchar = event.getUnicodeChar(derivedMetaState & ~HC_META_CTRL_MASK);
Expand Down

0 comments on commit 25315e3

Please sign in to comment.