mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-23 19:45:10 +01:00
Merge pull request #2556 from brunoais/ticket/12672
[ticket/12672] Make tab intercept; CB for keypress only react without key mods * brunoais/ticket/12672: [ticket/12672] Make tab intercept; CB for keypress only react without key mods
This commit is contained in:
commit
14d0a5f66b
@ -1201,7 +1201,11 @@ phpbb.applyCodeEditor = function(textarea) {
|
||||
var key = event.keyCode || event.which;
|
||||
|
||||
// intercept tabs
|
||||
if (key == 9) {
|
||||
if (key == 9 &&
|
||||
!event.ctrlKey &&
|
||||
!event.shiftKey &&
|
||||
!event.altKey &&
|
||||
!event.metaKey) {
|
||||
if (inTag()) {
|
||||
appendText("\t");
|
||||
event.preventDefault();
|
||||
|
Loading…
x
Reference in New Issue
Block a user