| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 5280|Reply: 5
Collapse the left

How can I turn off key shortcut in posting?

[Copy link]
Post time: 2012-02-23 17:20
| Show all posts |Read mode
Hello.

How can I turn off key shortcut ALT + S? In my language I have special characetrs, for example: łóńę.. etc. To get Ś I must press ALT + S but it shortcut is sending the post... How can I fix it?
 Author| Post time: 2012-03-07 20:34
| Show all posts
I need the answer because Poles use this shortcut when people are writing some posts with extra characters.

 Russia

Post time: 2012-03-09 16:36
| Show all posts
First modification:
Simple editor static/js/seditor.js:
  1. function seditor_ctlent(event, script) {
  2.         if(event.ctrlKey && event.keyCode == 13 || event.altKey && event.keyCode == 83) {
  3.                 eval(script);
  4.         }
  5. }
Copy the Code
Change the second line to:
  1.         if(event.ctrlKey && event.keyCode == 13 ) {
Copy the Code
Second modification:
static/js/editor.js, line 405:
  1. function ctlent(event) {
  2.         if(postSubmited == false && (event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83) && editorsubmit) {
Copy the Code
Change the second line to:
  1.         if(postSubmited == false && (event.ctrlKey && event.keyCode == 13) && editorsubmit) {
Copy the Code
Third change:
static/js/forum_post.js, line 43:
  1. function ctlent(event) {
  2.         if(postSubmited == false && (event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83) && $('postsubmit')) {
Copy the Code
Change the second line to:
  1.         if(postSubmited == false && (event.ctrlKey && event.keyCode == 13) && $('postsubmit')) {
Copy the Code
 Author| Post time: 2012-03-10 16:28
| Show all posts
Yupi Works fine, thanks!
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-22 21:45 GMT+3 , Processed in 0.041004 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list