Editor with widgets: Difference between revisions

no edit summary
No edit summary
Line 28: Line 28:
# if the widget has focus then pressing down/up key should change current value of widget's text field from widgets list. When the last/first list's value is achieved then the following pressing up/down key has no affects.
# if the widget has focus then pressing down/up key should change current value of widget's text field from widgets list. When the last/first list's value is achieved then the following pressing up/down key has no affects.
# mouse click on widget's text field should move focus to it and open widget's menu
# mouse click on widget's text field should move focus to it and open widget's menu
# double click should open and close widget's menu
# double click should open and close widget's menu, i.e. action analogous to two single clicks is executed




===BUTTON===
===BUTTON===
# if the button has focus and widget has onclick handler then pressing enter key should perform onlick handler
# if button has no focus then mouse click on button should move focus to button, onclick handler is not executed, user has possibility to remove, to copy, to move the button  
# if button has no focus then mouse click on button should move focus to button
# double click on button moves focus to button and performs onclick handler, i.e. action analogous to two single clicks is executed
# double click on button moves focus to button and performs onclick handler


===INPUT type="text"===
===INPUT type="text"===
# if caret is directly before/after the text field then pressing right/left key should move caret into widget's text field in the first/last position of the field's content. If the widget's content is larger then text field should be scrolled
# if caret is directly before/after the text field then pressing right/left key should move caret into widget's text field in the first/last position of the field's content. If the widget's content is larger then text field should be scrolled
# if caret is in the first/last position of the field's content then pressing left/right key moves caret to directly before/after the widget.  
# if caret is in the first/last position of the field's content then pressing left/right key moves caret to directly before/after the widget.  
# if caret is in the widget then pressing end/home key should move caret to the last/first position of the field's content
# if caret is in the widget then pressing delete/backspace key can remove only field's content. If content is empty then nothing happens.
# if caret is in the widget then pressing delete/backspace key can remove only field's content. If content is empty then nothing happens.
# mouse click on text field moves focus to widget and moves caret on field's content. If mouse click is on the field but there is no content in this place then the caret moves to the last position of the content.
# mouse click on text field moves focus to widget and moves caret on field's content. If mouse click is on the field but there is no content in this place then the caret moves to the last position of the content.
# when the focus leaves the text field then onchange handler should be performed
# double click and click on text field should moves the focus to widget
# double click and click on text field should moves the focus to widget


===INPUT type="radio"===
===INPUT type="radio"===
# if the widget has focus then pressing space key sets the value of 'checked' attribute to 'true'
# double click and click on the widget moves focus to widget and sets the value of 'checked' attribute to 'true'  
# double click and click on the widget moves focus to widget and sets the value of 'checked' attribute to 'true'  
# if the widget has focus then pressing delete/backspace key the widget should be removed
# if the widget has focus then pressing delete/backspace key the widget should be removed


===INPUT type="checkbox"===
===INPUT type="checkbox"===
# if the widget has focus then pressing Space key sets the value of 'checked' to inverse value
# click on the widget moves focus to widget and sets the value of 'checked' attribute to inverse value
# double click and click on the widget moves focus to widget and sets the value of 'checked' attribute to inverse value
# double click on the widget moves focus to widget and sets the value of 'checked' attribute to inverse value twice (in fact the attribute doesn't change), i.e. action analogous to two single clicks is executed
# if the widget has focus then pressing Delete/Backspace key the widget should be removed
# if the widget has focus then pressing Delete/Backspace key the widget should be removed


4

edits