@UndralBatsukh Thanks for your reply,
I think I am not being clear, or my explanation of the problem is confusing.
I don't have a problem with querying features using the rectangle. In fact it is already implemented in my code. I am trying to enhance the selection processes so that I dont have to add an extra button just to select by single clicks on the map.
The problem here is when you use the sketchviewmodel.create("rectangle") method, the view.on("click") will not handle clicks on the map, so I want to find a way to handle clicks after sketchviewmodel.create("rectangle") is called.
In your example in code pen, You cannot select features without drawing a rectangle, if you try to single click the map without drawing, a predefined rectangle big enough to select multiple features will be drawn, and undesired features within will be selected.
That is not the behaviour I want, I want users to decide on what to do when the selection button is clicked. Be able to either click on a feature, query the location of click point, or the user can hold the click, drag, release to draw a rectangle and query the ones inside of it.
So when I created the SketchViewModel, I specified the Mode to be "FreeHand" which will not draw a predefined rectangle on single clicks, users will have to click, drag the mouse and release to draw the rectangle.
So again my problem is that I am unable to handle single clicks on the map to query the feature/s, while the SketchViewModel.Create() is called.
Do you get the picture ? If you remember, Arcmap does this behaviour, and it is terrific from a user experience. The select button lets you single click without drawing a rectangle, or you can draw a rectangle and select whats in it.
Hope this clears the confusion