aboutsummaryrefslogtreecommitdiff
path: root/ui/widget/advanced-inputfield.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-22 23:03:36 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-22 23:03:36 +0200
commitb93dea2e1c18752b89b09790b390e54c33dda1bf (patch)
treec004fdf58d89b3a832db5df4887f716bf364d3f9 /ui/widget/advanced-inputfield.go
parent225dbdba4e1fed5814c0a3d1f34a8aedf87fc445 (diff)
Refactoring and documentation
Diffstat (limited to 'ui/widget/advanced-inputfield.go')
-rw-r--r--ui/widget/advanced-inputfield.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/widget/advanced-inputfield.go b/ui/widget/advanced-inputfield.go
index 8115b18..4948247 100644
--- a/ui/widget/advanced-inputfield.go
+++ b/ui/widget/advanced-inputfield.go
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
+// Based on https://github.com/rivo/tview/blob/master/inputfield.go
+
package widget
import (
@@ -68,6 +70,7 @@ type AdvancedInputField struct {
// disables masking.
maskCharacter rune
+ // Whether or not to enable vim-style keybindings.
vimBindings bool
// An optional function which may reject the last character that was entered.