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
3 changes: 3 additions & 0 deletions packages/webview_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.5.2
* Add a back key handling.

## 0.5.1
* Apply PlatformView API change.
* Code refactoring.
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 @@ -25,7 +25,7 @@ This package is not an _endorsed_ implementation of `webview_flutter`. Therefore
```yaml
dependencies:
webview_flutter: ^3.0.4
webview_flutter_tizen: ^0.5.1
webview_flutter_tizen: ^0.5.2
```

## Example
Expand Down
2 changes: 1 addition & 1 deletion 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 plugin
homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/webview_flutter
version: 0.5.1
version: 0.5.2

environment:
sdk: ">=2.17.0 <3.0.0"
Expand Down
6 changes: 6 additions & 0 deletions packages/webview_flutter/tizen/src/webview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,12 @@ bool WebView::SendKey(const char* key, const char* string, const char* compose,
param->key_value = KeyToKeyValue(key, is_shift_pressed);
param->is_down = is_down;

if (param->key_value == LWE::KeyValue::TVReturnKey &&
webview_instance_->CanGoBack()) {
webview_instance_->GoBack();
return true;
}

webview_instance_->AddIdleCallback(
[](void* data) {
Param* param = reinterpret_cast<Param*>(data);
Expand Down