Skip to content

Commit

Permalink
chickenpaint.js
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Jan 21, 2024
1 parent 1cc906f commit 67debbd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
5 changes: 5 additions & 0 deletions potiboard5/chickenpaint/js/chickenpaint.js
Original file line number Diff line number Diff line change
Expand Up @@ -18609,6 +18609,7 @@ function CPBrushPanel(controller) {
controller.getBrushInfo().tip = parseInt(tipCombo.value, 10);
});
tipCombo.className = "form-control form-control-sm";
tipCombo.tabIndex = -1;
fillCombobox(tipCombo, TIP_NAMES);
panel.appendChild(tipCombo);
panel.appendChild(brushPreview.getElement());
Expand Down Expand Up @@ -22009,6 +22010,8 @@ function createChickenPaintIcon(iconName) {
function wrapBootstrapCheckbox(checkbox, title) {
var div = document.createElement("div"),
label = document.createElement("label");
label.tabIndex = -1;
checkbox.tabIndex = -1;
div.className = "form-check";
checkbox.className = "form-check-input";
label.className = "form-check-label";
Expand Down Expand Up @@ -23303,6 +23306,7 @@ function CPLayersPalette(controller) {
}, Math.max(Math.round(message.length * NOTIFICATION_HIDE_DELAY_MS_PER_CHAR), NOTIFICATION_HIDE_DELAY_MIN));
};
blendCombo.className = "form-control form-control-sm";
blendCombo.tabIndex = -1;
blendCombo.title = (0, _lang._)("Layer blending mode");
blendCombo.addEventListener("change", function (e) {
controller.actionPerformed({
Expand Down Expand Up @@ -24372,6 +24376,7 @@ function CPPalette(cpController, className, title, options) {
closeButton.type = "button";
closeButton.className = "btn btn-close";
closeButton.innerHTML = "";
closeButton.tabIndex = -1;
containerElement.className = "chickenpaint-palette chickenpaint-palette-" + className;
headElement.className = "chickenpaint-palette-head";
headElement.setAttribute("touch-action", "none");
Expand Down
Loading

0 comments on commit 67debbd

Please sign in to comment.