Hello. I got an issue with keyboard shortcuts when writing a message (shortcuts: hit shift+alt+s to submit/post or shift+alt+p to preview). Some of my users who use Mac can't use polish national character "ś" because browser recognizes it as [shift+alt+s] and send the message. Is there any way to disable it, or change maybe?
I could be wrong, here. But, I don't think SMF, itself, creates those shortcuts.
I believe the OS, itself, creates them.
So, you'd need to figure-out how disable them from the OS, not SMF.
As I said, though, I could be wrong... ;)
http://msdn.microsoft.com/en-us/library/aa460734.aspx
"shortcuts: hit alt+s to submit/post or alt+p to preview" is shown below the full post window these are smf shortcuts not browser. you would need to search the code for that and remove it, i think it may be in the js files.
looks to be in several source files [search for shortcuts] and in editor.js
Answer to K@:
I wouldn't be so sure about that. Windows or MacOS can't make your browser to send a form via POST request just by itself. Besides, here's lines from SMF language files:
$txt['shortcuts'] = 'shortcuts: hit alt+s to submit/post or alt+p to preview';
$txt['shortcuts_firefox'] = 'shortcuts: hit shift+alt+s to submit/post or shift+alt+p to preview';
Ofc, that proves nothing, but still I am quite sure it is SMF functionality.
it is according to my post above if you read it at all.
No Illori, it's not for you. Your post showed up when I was writing my message. I will check JS files, but first I wanted to know is there any build-in option to disable this shortcuts.
Told you I might be wrong. ;)
They're redundant - just edit them out of the code.
OK, so I guess there is no option to disable it, only to edit code. To be honest this shortcuts are useless anyway, no one uses it on my forum.
How can I make suggestion for the next version, to provide an option in user profile to disable this?
post in the feature requests board.
In case someone else is looking for the solution to this problem: to get rid of this shortcuts text you'll have to remove the phrase "shortcuts: hit alt+s to submit/post or alt+p to preview" from the files "index.english.php" and "Post.english.php".
Both of these files can be found in Themes > default > languages.
Might save someone else the time I spent looking for it... ;)
That may remove the text, but it does not remove the shortcut code itself
As the original post has been asked and answered, marking solved.