Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9acc5922
Commit
9acc5922
authored
Apr 16, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments for hotkeys
parent
358482c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+2
-0
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
+2
-0
lms/static/coffee/src/staff_grading/staff_grading.coffee
+2
-0
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
9acc5922
...
...
@@ -365,12 +365,14 @@ class @CombinedOpenEnded
@
errors_area
.
html
(
@
out_of_sync_message
)
keydown_handler
:
(
event
)
=>
#Previously, responses were submitted when hitting enter. Add in a modifier that ensures that ctrl+enter is needed.
if
event
.
which
==
17
&&
@
is_ctrl
==
false
@
is_ctrl
=
true
else
if
@
is_ctrl
==
true
&&
event
.
which
==
13
&&
@
child_state
==
'assessing'
&&
Rubric
.
check_complete
()
@
save_assessment
(
event
)
keyup_handler
:
(
event
)
=>
#Handle keyup event when ctrl key is released
if
event
.
which
==
17
&&
@
is_ctrl
==
true
@
is_ctrl
=
false
...
...
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
View file @
9acc5922
...
...
@@ -361,6 +361,7 @@ class @PeerGradingProblem
@
grade
=
Rubric
.
get_total_score
()
keydown_handler
:
(
event
)
=>
#Previously, responses were submitted when hitting enter. Add in a modifier that ensures that ctrl+enter is needed.
if
event
.
which
==
17
&&
@
is_ctrl
==
false
@
is_ctrl
=
true
else
if
event
.
which
==
13
&&
@
submit_button
.
is
(
':visible'
)
&&
@
is_ctrl
==
true
...
...
@@ -370,6 +371,7 @@ class @PeerGradingProblem
@
submit_grade
()
keyup_handler
:
(
event
)
=>
#Handle keyup event when ctrl key is released
if
event
.
which
==
17
&&
@
is_ctrl
==
true
@
is_ctrl
=
false
...
...
lms/static/coffee/src/staff_grading/staff_grading.coffee
View file @
9acc5922
...
...
@@ -234,12 +234,14 @@ class @StaffGrading
@
submit_button
.
show
()
keydown_handler
:
(
event
)
=>
#Previously, responses were submitted when hitting enter. Add in a modifier that ensures that ctrl+enter is needed.
if
event
.
which
==
17
&&
@
is_ctrl
==
false
@
is_ctrl
=
true
else
if
@
is_ctrl
==
true
&&
event
.
which
==
13
&&
!
@
list_view
&&
Rubric
.
check_complete
()
@
submit_and_get_next
()
keyup_handler
:
(
event
)
=>
#Handle keyup event when ctrl key is released
if
event
.
which
==
17
&&
@
is_ctrl
==
true
@
is_ctrl
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment