Skip to content

Commit d566fde

Browse files
author
Chris Warren-Smith
committed
ANDROID: implemented support for editing with the system keypad
1 parent e36b56f commit d566fde

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/platform/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
applicationId 'net.sourceforge.smallbasic'
1010
minSdkVersion 21
1111
targetSdkVersion 36
12-
versionCode 84
12+
versionCode 85
1313
versionName '12.31'
1414
resourceConfigurations += ['en']
1515
}

src/platform/android/jni/editor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ void Runtime::editSource(strlib::String loadPath, bool restoreOnExit) {
130130
int h = _output->getHeight();
131131
int charWidth = _output->getCharWidth();
132132
int charHeight = _output->getCharHeight();
133-
int prevScreenId = _output->selectScreen(FORM_SCREEN);
133+
int screenId = opt_ide == IDE_EXTERNAL ? SOURCE_SCREEN : FORM_SCREEN;
134+
int prevScreenId = _output->selectScreen(screenId);
134135
TextEditInput *editWidget;
135136
if (_editor != nullptr) {
136137
editWidget = _editor;

0 commit comments

Comments
 (0)