mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Revert "focus is set on the buttons #1284"
This reverts commit 664faacde8.
This commit is contained in:
parent
f28255de7c
commit
de04ce6838
@ -1480,23 +1480,14 @@ define([
|
||||
$button.addClass('cp-toolbar-button-active');
|
||||
var wh = $(window).height();
|
||||
$content.css('max-height', Math.floor(wh - topPos - 1)+'px')
|
||||
$content.children(':visible').each(function() {
|
||||
if ($(this).is('button')) {
|
||||
$(this).addClass('active-element');
|
||||
} else if ($(this).find('button').length > 0) {
|
||||
$(this).find('button').addClass('active-element');
|
||||
}
|
||||
});
|
||||
$content.children(':visible').addClass('active-element');
|
||||
$content.find('.active-element').first().focus();
|
||||
} else {
|
||||
if ($(this).is('button')) {
|
||||
$(this).removeClass('active-element');
|
||||
} else if ($(this).find('button').length > 0) {
|
||||
$(this).find('button').removeClass('active-element');
|
||||
}
|
||||
$content.children().removeClass('active-element');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var currentIndex = 0;
|
||||
|
||||
$(document).keydown(function(e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user