Merge pull request #38 from otacke/HFP-878

Avoid accidently selecting things in the toolbar
pull/10/merge
Svein-Tore Griff With 2017-04-03 10:22:12 +02:00 committed by GitHub
commit 98f1ac4abb
2 changed files with 9 additions and 1 deletions

View File

@ -36,7 +36,7 @@ H5P.ActionBar = (function ($, EventDispatcher) {
self.trigger(type);
};
H5P.jQuery('<li/>', {
'class': 'h5p-button h5p-' + (customClass ? customClass : type),
'class': 'h5p-button h5p-noselect h5p-' + (customClass ? customClass : type),
role: 'button',
tabindex: 0,
title: H5P.t(type + 'Description'),

View File

@ -30,6 +30,14 @@ html.h5p-iframe, html.h5p-iframe > body {
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.h5p-noselect
{
-khtml-user-select: none;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
}
html.h5p-iframe .h5p-content {
font-size: 16px;
line-height: 1.5em;