Keyboard shortcut for the "edit object"functionality

Bug #1364231 reported by Dipak Chaudhari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

I can invoke the "edit object" functionality by double clicking on an object. I would like to bind a key to this functionality.

About the "Edit object" functionality :
For paths, double clicking switches to Node tool; for shapes, to corresponding shape tool; for text, to Text tool. For groups, double
 clicking performs the "Enter group" command. ( As described in section "Selector > Select (mouse) > click + click : edit the object" in http://inkscape.org/doc/keys048.html )

Note:
F2 can be a substitute (workaround) for this. It can be replicate "edit the object" functionality for the shape nodes (like rectangle) but it does not replicate the behavior for text nodes. For instance, on double clicking a text node, I can edit the text, but pressing F2 on a text node does not allow me to edit the text in the node.

su_v (suv-lp)
tags: added: shape-editing
Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
su_v (suv-lp) wrote :

Current status:
- no verbs exists which calls tools_switch_by_item()
- tools_switch_by_item() requires a coordinate (Geom::Point) of where the double-click occurred (used to position the text cursor when double-clicking a text object); such a point does not exist if this command is called via keyboard shortcuts
- the relevant verb context already provides the center of the bbox; one could consider to pass the top left or bottom right corner point of the bbox to the new verb to position text cursor at start / end of the text (if the current selection is a text)
- to be discussed: what happens if the current selection contains multiple different objects? Switch to the corresponding tool of the first (last, bottom-most, top-most) item in the selection list? Don't attempt to switch tool at all?

Double-click is handled here:
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/ui/tools/select-tool.cpp#L473
Definition of tools_switch_by_item():
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/tools-switch.cpp#L159
Verb context:
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/verbs.cpp#L1485

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.