Skip to content

Commit

Permalink
Fixed the bug with backspace key.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurgen Hovhannisyan authored and Gurgen Hovhannisyan committed Apr 2, 2019
1 parent 6fee432 commit 3ed592b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
## [0.1.2] - 03/01/2019.

* Added alwaysCaps property and longPress for backspace.

## [0.1.3] - 03/01/2019.

* Fixed the bug with backspace key.
6 changes: 3 additions & 3 deletions lib/src/keyboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ class _VirtualKeyboardState extends State<VirtualKeyboard> {
return rows;
}

// True if long press is enabled.
bool longPress;

/// Creates default UI element for keyboard Key.
Widget _keyboardDefaultKey(VirtualKeyboardKey key) {
return Expanded(
Expand All @@ -212,9 +215,6 @@ class _VirtualKeyboardState extends State<VirtualKeyboard> {
// Holds the action key widget.
Widget actionKey;

// True if long press is enabled.
bool longPress;

// Switch the action type to build action Key widget.
switch (key.action) {
case VirtualKeyboardKeyAction.Backspace:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: virtual_keyboard
description: A simple package for dispaying virtual keyboards on a devices like kiosks and ATMs. The library is written in Dart and has no native code dependancy.
version: 0.1.2
version: 0.1.3
author: Gurgen Hovhannisyan <g.hovhannisyan@digitalpomegranate.com>
homepage: https://github.com/gurgenDP/virtual_keyboard

Expand Down

0 comments on commit 3ed592b

Please sign in to comment.