Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/webview_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.9.7

* Fix back key, exit key handling.

## 0.9.6

* Update code format.
Expand Down
2 changes: 1 addition & 1 deletion packages/webview_flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This package is not an _endorsed_ implementation of `webview_flutter`. Therefore
```yaml
dependencies:
webview_flutter: ^4.10.0
webview_flutter_tizen: ^0.9.6
webview_flutter_tizen: ^0.9.7
```

## Example
Expand Down
3 changes: 1 addition & 2 deletions packages/webview_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: webview_flutter_tizen
description: Tizen implementation of the webview_flutter plugin.
homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/webview_flutter
version: 0.9.6
version: 0.9.7

environment:
sdk: ">=3.1.0 <4.0.0"
Expand All @@ -27,4 +27,3 @@ topics:
- html
- webview
- webview-flutter

14 changes: 10 additions & 4 deletions packages/webview_flutter/tizen/src/webview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,16 @@ bool WebView::SendKey(const char* key, const char* string, const char* compose,
return false;
}

if (strcmp(key, "XF86Back") == 0 && !is_down &&
ewk_view_back_possible(webview_instance_)) {
ewk_view_back(webview_instance_);
return true;
if (strcmp(key, "XF86Exit") == 0 && !is_down) {
return false;
}

if (strcmp(key, "XF86Back") == 0 && !is_down) {
if (ewk_view_back_possible(webview_instance_)) {
ewk_view_back(webview_instance_);
return true;
}
return false;
}

if (is_down) {
Expand Down