mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 01:26:18 +00:00
31e7dbf020
* add "delayed" option to tm-focus-selector message this delays the focussing for the time of the animation duration if delayed="yes" or delayed="true" this is useful when navigating the story river up and down with keyboard shortcuts and the shortcuts focus the title input if a navigated tiddler is in edit mode -> navigation doesn't jump but stays smooth * Update rootwidget.js * Update WidgetMessage_ tm-focus-selector.tid * add preventScroll="true" tip
15 lines
555 B
Plaintext
15 lines
555 B
Plaintext
caption: tm-focus-selector
|
|
created: 20190628162542132
|
|
modified: 20190628162542132
|
|
tags: Messages
|
|
title: WidgetMessage: tm-focus-selector
|
|
type: text/vnd.tiddlywiki
|
|
|
|
The `tm-focus-selector` message sets the focus to the DOM element identified by the selector in the `param` parameter.
|
|
|
|
|!Name |!Description |
|
|
|param |Selector identifying the DOM element to be focussed |
|
|
|paramObject |Optional hashmap of additional parameters passed to the `focus` command |
|
|
|
|
<<.tip """preventScroll="true" prevents the browser from scrolling to the focused element""">>
|