mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-03 07:47:59 +00:00
Adding optional tabindex attr to simple, framed and cm engines (#3756)
* add optional tabindex attribute to factory.js * add changedAttributes.tabindex to refresh mechanic * add optional tabindex attribute to edit widget * remove some extra whitespace * remove some trailing whitespace * add optional tabindex attribute to simple engine * add optional tabindex attribute to framed engine * add optional tabindex attribute to cm engine
This commit is contained in:
committed by
Jeremy Ruston
parent
9d7d3fefa0
commit
f97d18bb6e
@@ -49,6 +49,9 @@ function SimpleEngine(options) {
|
||||
if(this.widget.editClass) {
|
||||
this.domNode.className = this.widget.editClass;
|
||||
}
|
||||
if(this.widget.editTabIndex) {
|
||||
this.domNode.setAttribute("tabindex",this.widget.editTabIndex);
|
||||
}
|
||||
// Add an input event handler
|
||||
$tw.utils.addEventListeners(this.domNode,[
|
||||
{name: "focus", handlerObject: this, handlerMethod: "handleFocusEvent"},
|
||||
|
||||
Reference in New Issue
Block a user