A user, tessus, reported an issue with the Discourse composer where accidentally pressing tab and then space while typing a post would submit the post prematurely. tessus requested a way to turn off keyboard shortcuts while creating a message/topic, but was informed by codinghorror that it is not currently possible to do so.
tessus noted that this is not the default behavior in all UIs, citing examples such as GitHub and Mediawiki. pfaffman suggested that the issue may be due to the control+enter shortcut, but tessus clarified that this is not the case.
awesomerobot pointed out that tabbing to move around and space to interact are firm accessibility requirements, and that overriding these would be problematic. Stephen agreed, stating that it would be easier for tessus to adjust to web conventions than for the internet to make allowances for them.
tessus suggested several potential solutions, including making the cancel button the first to focus, requiring a combination of keys to jump out of the editor, or confirming sending the message with a popup. However, these suggestions were met with concerns about accessibility and the potential impact on other users.
codinghorror noted that the behavior of tabbing to the submit button and then pressing space to submit is expected in many online forms, and that changing this behavior could cause issues for other users. tessus ultimately suggested closing the topic, acknowledging that the industry is not likely to change its ways.
awesomerobot provided a potential workaround by overriding the handlebars template to change the tabindex value, but this would require admin access. tessus thanked awesomerobot for the suggestion, but noted that it is not a viable solution for them as a user.