You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bases/rsptx/interactives/runestone/activecode/js/activecode.js
+34-17Lines changed: 34 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -377,29 +377,46 @@ export class ActiveCode extends RunestoneBase {
377
377
}
378
378
// capture current this for use in event handler
379
379
letacElement=this;
380
-
$(window).keydown(function(e){
381
-
//Solving Keyboard Trap of ActiveCode: If user use tab for navigation outside of ActiveCode, then change tab behavior in ActiveCode to enable tab user to tab out of the textarea
382
-
varcode=e.keyCode ? e.keyCode : e.which;
383
-
if(code==9&&$("textarea:focus").length===0){
380
+
381
+
// document level event handler for tab key to handle context switching
382
+
// detect if tab key was used to get into the editor
0 commit comments