Skip to content

Commit

Permalink
Change zoom keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Feodor0090 committed Jun 1, 2023
1 parent c4ba495 commit 76dbb18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mahomaps/screens/KeyboardHelpScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class KeyboardHelpScreen extends Form implements CommandListener {
public KeyboardHelpScreen() {
super("Справка");
append(new StringItem("Навигация", "D-PAD"));
append(new StringItem("Масштаб", "1/* - отдалить\n3/# - приблизить"));
append(new StringItem("Масштаб", "1/* - приблизить\n3/# - отдалить"));
append(new StringItem("Поиск", "7"));
append(new StringItem("Геопозиция", "9"));
append(new StringItem("Меню приложения", "Левая софт-клавиша"));
Expand Down
8 changes: 4 additions & 4 deletions src/mahomaps/screens/MapCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@ protected void keyPressed(int k) {
break handling;
}
switch (k) {
case KEY_NUM1:
case KEY_STAR:
state = state.ZoomOut();
break handling;
case KEY_NUM3:
case KEY_POUND:
state = state.ZoomOut();
break handling;
case KEY_NUM1:
case KEY_STAR:
state = state.ZoomIn();
break handling;
case KEY_NUM7:
Expand Down

0 comments on commit 76dbb18

Please sign in to comment.