Skip to content

Commit 55124f5

Browse files
author
dessant
committed
remove CodeInput.key_bindings
1 parent 3f5539b commit 55124f5

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

kivy/uix/behaviors/emacs.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The :class:`~kivy.uix.behaviors.emacs.EmacsBehavior`
77
`mixin <https://en.wikipedia.org/wiki/Mixin>`_ allows you to add
88
`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.
1010
The shortcuts currently available are listed below::
1111
1212
Emacs shortcuts
@@ -43,7 +43,7 @@
4343
class EmacsBehavior(object):
4444
'''
4545
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.
4747
Please see the :mod:`Emacs behaviors module <kivy.uix.behaviors.emacs>`
4848
documentation for more information.
4949
@@ -52,15 +52,16 @@ class EmacsBehavior(object):
5252

5353
key_bindings = StringProperty('emacs')
5454
'''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
5656
be enabled/disabled programmatically for widgets that inherit from
5757
: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.
5960
6061
:attr:`key_bindings` is a :class:`~kivy.properties.StringProperty`
6162
and defaults to ``'emacs'``.
6263
63-
.. versionadded:: 1.9.2
64+
.. versionadded:: 2.0.0
6465
'''
6566

6667
def __init__(self, **kwargs):

kivy/uix/codeinput.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,6 @@ class CodeInput(CodeNavigationBehavior, TextInput):
8585
8686
'''
8787

88-
key_bindings = StringProperty('default')
89-
'''Determines the type of key bindings to use.
90-
91-
:attr:`key_bindings` is a :class:`~kivy.properties.StringProperty`
92-
and defaults to ``'default'``.
93-
94-
.. versionadded:: 1.9.2
95-
'''
96-
9788
def __init__(self, **kwargs):
9889
stylename = kwargs.get('style_name', 'default')
9990
style = kwargs['style'] if 'style' in kwargs \

0 commit comments

Comments
 (0)