6
6
The :class:`~kivy.uix.behaviors.emacs.EmacsBehavior`
7
7
`mixin <https://en.wikipedia.org/wiki/Mixin>`_ allows you to add
8
8
`Emacs <https://www.gnu.org/software/emacs/>`_ keyboard shortcuts for basic
9
- movement and editing to the :class:`~kivy.uix.codeinput.CodeInput ` widget.
9
+ movement and editing to the :class:`~kivy.uix.textinput.TextInput ` widget.
10
10
The shortcuts currently available are listed below::
11
11
12
12
Emacs shortcuts
43
43
class EmacsBehavior (object ):
44
44
'''
45
45
A `mixin <https://en.wikipedia.org/wiki/Mixin>`_ that enables Emacs-style
46
- keyboard shortcuts for the :class:`~kivy.uix.codeinput.CodeInput ` widget.
46
+ keyboard shortcuts for the :class:`~kivy.uix.textinput.TextInput ` widget.
47
47
Please see the :mod:`Emacs behaviors module <kivy.uix.behaviors.emacs>`
48
48
documentation for more information.
49
49
@@ -52,15 +52,16 @@ class EmacsBehavior(object):
52
52
53
53
key_bindings = StringProperty ('emacs' )
54
54
'''String name which determines the type of key bindings to use with the
55
- :class:`~kivy.uix.codeinput.CodeInput `. This allows Emacs key bindings to
55
+ :class:`~kivy.uix.textinput.TextInput `. This allows Emacs key bindings to
56
56
be enabled/disabled programmatically for widgets that inherit from
57
57
:class:`EmacsBehavior`. If the value is not ``'emacs'``, Emacs bindings
58
- will be disabled.
58
+ will be disabled. Use ``'default'`` for switching to the default key
59
+ bindings of TextInput.
59
60
60
61
:attr:`key_bindings` is a :class:`~kivy.properties.StringProperty`
61
62
and defaults to ``'emacs'``.
62
63
63
- .. versionadded:: 1.9.2
64
+ .. versionadded:: 2.0.0
64
65
'''
65
66
66
67
def __init__ (self , ** kwargs ):
0 commit comments