ui.tools.listener: update docs for Emacs-style text entry.
parent
0f69430f8d
commit
913e69500f
|
@ -41,8 +41,8 @@ $nl
|
||||||
"Then you can run the following code, or add it to your " { $link ".factor-rc" } "."
|
"Then you can run the following code, or add it to your " { $link ".factor-rc" } "."
|
||||||
$nl
|
$nl
|
||||||
{ $code
|
{ $code
|
||||||
"""USING: accessors assocs kernel sequences sets ui.commands
|
"""USING: accessors kernel sequences sets ui.commands
|
||||||
ui.gadgets.editors ui.gestures ui.tools.listener ;
|
ui.gadgets.editors ui.gestures ;
|
||||||
|
|
||||||
"multiline" multiline-editor get-command-at [
|
"multiline" multiline-editor get-command-at [
|
||||||
{
|
{
|
||||||
|
@ -50,11 +50,7 @@ ui.gadgets.editors ui.gestures ui.tools.listener ;
|
||||||
{ T{ key-down f { C+ } "a" } start-of-line }
|
{ T{ key-down f { C+ } "a" } start-of-line }
|
||||||
{ T{ key-down f { C+ } "e" } end-of-line }
|
{ T{ key-down f { C+ } "e" } end-of-line }
|
||||||
} append members
|
} append members
|
||||||
] change-commands drop multiline-editor update-gestures
|
] change-commands drop multiline-editor update-gestures"""
|
||||||
|
|
||||||
"interactor" interactor get-command-at [
|
|
||||||
[ drop T{ key-down f { C+ } "k" } = not ] assoc-filter
|
|
||||||
] change-commands drop interactor update-gestures"""
|
|
||||||
}
|
}
|
||||||
$nl
|
$nl
|
||||||
{ $heading "Implementation" }
|
{ $heading "Implementation" }
|
||||||
|
|
Loading…
Reference in New Issue