{"comment":{"created_at":"2012-01-01T06:16:24Z","user":{"id":1016984,"login":"anilgulecha","url":"https://api.github.com/users/anilgulecha","avatar_url":"https://secure.gravatar.com/avatar/396f285ce2e693e61f52f15ee7ccce68?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"396f285ce2e693e61f52f15ee7ccce68"},"path":"src/screenplay.py","updated_at":"2012-01-01T06:16:24Z","id":830148,"html_url":"https://github.com/anilgulecha/trelby/commit/c226b2897d#commitcomment-830148","position":70,"body":"Thanks for catching. However, I disagree with the above behavior.\n\nThe only behavior either tab or enter should do with a tab or enter is unselect text is selected (and if no text selected, go with the existing behavior). it is confusing to the user to have two things happen (unselecting of text + creation/split of element). Not good UI practice.\n\nWith my suggested (and implemented) behavior, the text simply gets unselected, and the cursor anyway remains in it's old position, so another enter/tab will allow the user to change/create new element. This is easier interaction, that a user will learn quicker.\n\nUpdated patch coming shortly.","url":"https://api.github.com/repos/anilgulecha/trelby/comments/830148","commit_id":"c226b2897d39db518540500180016d382c34d0de","line":1570}}