Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
698cb34c
Commit
698cb34c
authored
Feb 28, 2020
by
yuichiro ogawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
フォーカス移動の修正、コメント追加
parent
3d3eb6d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
+3
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/CheckFormWebview.java
+1
-0
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
View file @
698cb34c
...
@@ -462,11 +462,10 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
...
@@ -462,11 +462,10 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
@Override
@Override
public
boolean
dispatchKeyEvent
(
KeyEvent
event
)
{
public
boolean
dispatchKeyEvent
(
KeyEvent
event
)
{
if
(
event
.
getAction
()==
KeyEvent
.
ACTION_DOWN
||
event
.
getAction
()==
KeyEvent
.
ACTION_UP
)
{
// KAGOME Ph2 WebView表示時に戻るボタンの誤打で報告が消えることがあるため非活性に変更
if
(
event
.
getKeyCode
()
==
KeyEvent
.
KEYCODE_BACK
)
{
return
true
;}
if
(
event
.
getAction
()==
KeyEvent
.
ACTION_UP
)
{
switch
(
event
.
getKeyCode
())
{
switch
(
event
.
getKeyCode
())
{
case
KeyEvent
.
KEYCODE_BACK
:
// KAGOME Ph2 WebView表示時に戻るボタンの誤打で報告が消えることがあるため非活性に変更
return
true
;
case
KeyEvent
.
KEYCODE_ENTER
:
case
KeyEvent
.
KEYCODE_ENTER
:
// KAGOME Ph2 バーコード読み取り時のEnterキー入力イベントをハンドリング
// KAGOME Ph2 バーコード読み取り時のEnterキー入力イベントをハンドリング
doEnterEvent
();
doEnterEvent
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/CheckFormWebview.java
View file @
698cb34c
...
@@ -36,6 +36,7 @@ public class CheckFormWebview extends WebView {
...
@@ -36,6 +36,7 @@ public class CheckFormWebview extends WebView {
}
}
// WebView上でIMEキーボードのアクションがあった場合のハンドリングを行う
// WebView上でIMEキーボードのアクションがあった場合のハンドリングを行う
// NOTE バーコード読取は{@link ParentWebviewActivity#dispatchKeyEvent(KeyEvent event) dispatchKeyEvent}でキャッチする
@Override
public
boolean
performEditorAction
(
int
action
)
{
@Override
public
boolean
performEditorAction
(
int
action
)
{
if
(
action
==
EditorInfo
.
IME_ACTION_GO
||
action
==
EditorInfo
.
IME_ACTION_NEXT
)
{
if
(
action
==
EditorInfo
.
IME_ACTION_GO
||
action
==
EditorInfo
.
IME_ACTION_NEXT
)
{
if
(
enterCallback
!=
null
)
{
if
(
enterCallback
!=
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment