diff --git a/dist/js/ca_trevis_apex_ig_simple_checkbox.bundle.min.js b/dist/js/ca_trevis_apex_ig_simple_checkbox.bundle.min.js
index 2eefd94..747f7e6 100644
--- a/dist/js/ca_trevis_apex_ig_simple_checkbox.bundle.min.js
+++ b/dist/js/ca_trevis_apex_ig_simple_checkbox.bundle.min.js
@@ -20,4 +20,4 @@ var ca_trevis_apex_ig_simple_checkbox=function(a){function b(d){if(c[d])return c
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
- */const d=(a,b)=>{const{checkedValue:c,uncheckedValue:d,readOnly:e}=b;let f=0;const g=$(`#${a}`),h=g.addClass('u-vh is-focusable').wrap('
').content('').markup(' '),f+=1,h.toString()},j=(b)=>{const c=b.closest('tr').data('id'),d=$(b.parents('.a-IG')).attr('id').slice(0,-3),e=apex.region(d).widget(),{model:f}=e.interactiveGrid('getViews','grid'),h=f.getRecord(c),i=e.interactiveGrid('getViews').grid.model.getOption('fields');let j='';Object.keys(i).forEach((b)=>{i[b].elementId===a&&(j=b)}),f.setValue(h,j,g.val())},k=()=>{const a=h.find('input[type="checkbox"]');a.prop('checked',g.val()===c),(()=>{$('.ig-simple-checkbox').each((a,b)=>{$(b).parents('td').off('.igsimplecheckbox').on('keydown.igsimplecheckbox',(a)=>{if(32===a.which){const a=$(b).find('input[type="checkbox"]');return g.val(a.prop('checked')?d:c).change(),j(g),k(),!1}return!0})})})()};h.append(i()),h.find('input[type="checkbox"]').on('change',(a)=>{const b=$(a.currentTarget);g.val(b.prop('checked')?c:d).change(),j(b),g.focus()}),k(),b.readOnly&&(g.closest('.ig-simple-checkbox').removeClass('ig-simple-checkbox-disabled'),g.closest('.ig-simple-checkbox').addClass('ig-simple-checkbox-enabled')),apex.item.create(a,{setValue(a){g.val(a),k()},disable(){g.closest('.ig-simple-checkbox').addClass('ig-simple-checkbox-disabled'),g.closest('.ig-simple-checkbox').removeClass('ig-simple-checkbox-enabled'),g.prop('disabled',!0)},enable(){b.readOnly||(g.closest('.ig-simple-checkbox').removeClass('ig-simple-checkbox-disabled'),g.closest('.ig-simple-checkbox').addClass('ig-simple-checkbox-enabled'),g.prop('disabled',!1))},displayValueFor(a){return i(!0,a)}})}}]);
+ */const d=(a,b)=>{const{checkedValue:c,uncheckedValue:d,readOnly:e}=b;let f=0;const g=$(`#${a}`),h=g.addClass('u-vh is-focusable').wrap('
').parent(),i=(b,g)=>{const h=apex.util.htmlBuilder();return h.markup('
').content('').markup(' '),f+=1,h.toString()},j=(b)=>{const c=b.closest('tr').data('id'),d=$(b.parents('.a-IG')).attr('id').slice(0,-3),e=apex.region(d).widget(),{model:f}=e.interactiveGrid('getViews','grid'),h=f.getRecord(c),i=e.interactiveGrid('getViews').grid.model.getOption('fields');let j='';Object.keys(i).forEach((b)=>{i[b].elementId===a&&(j=b)}),f.setValue(h,j,g.val())},k=()=>{const a=h.find('input[type="checkbox"]');a.prop('checked',g.val()===c),(()=>{$('.ig-simple-checkbox').each((a,b)=>{$(b).parents('td').off('.igsimplecheckbox').on('keydown.igsimplecheckbox',(a)=>{if(32===a.which){const a=$(b).find('input[type="checkbox"]');return g.val(a.prop('checked')?d:c).change(),j(g),k(),!1}return!0})})})()};h.append(i()),h.find('input[type="checkbox"]').on('change',(a)=>{const b=$(a.currentTarget);g.val(b.prop('checked')?c:d).change(),j(b),g.focus()}),k(),b.readOnly&&(g.closest('.ig-simple-checkbox').removeClass('ig-simple-checkbox-disabled'),g.closest('.ig-simple-checkbox').addClass('ig-simple-checkbox-enabled')),apex.item.create(a,{setValue(a){g.val(a),k()},disable(){g.closest('.ig-simple-checkbox').addClass('ig-simple-checkbox-disabled'),g.closest('.ig-simple-checkbox').removeClass('ig-simple-checkbox-enabled'),g.prop('disabled',!0)},enable(){b.readOnly||(g.closest('.ig-simple-checkbox').removeClass('ig-simple-checkbox-disabled'),g.closest('.ig-simple-checkbox').addClass('ig-simple-checkbox-enabled'),g.prop('disabled',!1))},displayValueFor(a){return i(!0,a)}})}}]);
diff --git a/ig_simple_checkbox.sql b/ig_simple_checkbox.sql
index 638dc3e..cbc7463 100644
--- a/ig_simple_checkbox.sql
+++ b/ig_simple_checkbox.sql
@@ -30,7 +30,6 @@ wwv_flow_api.create_plugin(
,p_display_name=>'IG Simple Checkbox'
,p_supported_ui_types=>'DESKTOP'
,p_supported_component_types=>'APEX_APPL_PAGE_IG_COLUMNS'
-,p_image_prefix=>'&G_APEX_NITRO_IMAGES.'
,p_javascript_file_urls=>'#PLUGIN_FILES#js/ca_trevis_apex_ig_simple_checkbox.bundle.min.js'
,p_css_file_urls=>'#PLUGIN_FILES#css/ca_trevis_apex_ig_simple_checkbox.min.css'
,p_plsql_code=>wwv_flow_string.join(wwv_flow_t_varchar2(
@@ -132,7 +131,7 @@ wwv_flow_api.create_plugin(
,p_subscribe_plugin_settings=>true
,p_version_identifier=>'18.2.3'
,p_about_url=>'https://github.com/rafael-trevisan/apex-plugin-ig_simple_checkbox'
-,p_files_version=>9
+,p_files_version=>10
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(50145107408085211199)
@@ -225,23 +224,23 @@ wwv_flow_api.g_varchar2_table(20) := '663D303B636F6E737420673D24286023247B617D60
wwv_flow_api.g_varchar2_table(21) := '706C652D636865636B626F782D6974656D2069672D73696D706C652D636865636B626F782D656E61626C6564223E3C2F6469763E27292E706172656E7428292C693D28622C67293D3E7B636F6E737420683D617065782E7574696C2E68746D6C4275696C';
wwv_flow_api.g_varchar2_table(22) := '64657228293B72657475726E20682E6D61726B757028273C64697627292E617474722827636C617373272C2769672D73696D706C652D636865636B626F7820636865636B626F785F67726F757020617065782D6974656D2D636865636B626F7827292E6D';
wwv_flow_api.g_varchar2_table(23) := '61726B757028273E3C696E70757427292E61747472282774797065272C27636865636B626F7827292E6174747228276964272C60247B617D5F247B667D5F3060292E6174747228276E616D65272C60247B617D5F247B667D60292E61747472282776616C';
-wwv_flow_api.g_varchar2_table(24) := '7565272C67292E617474722827646174612D636865636B65642D76616C7565272C63292E617474722827646174612D756E636865636B65642D76616C7565272C64292E6F7074696F6E616C417474722827636865636B6564272C673D3D3D63292E6F7074';
-wwv_flow_api.g_varchar2_table(25) := '696F6E616C41747472282764697361626C6564272C65292E6D61726B75702827202F3E3C6C6162656C27292E617474722827666F72272C60247B617D5F247B667D5F3060292E6D61726B757028273E27292E636F6E74656E74282727292E6D61726B7570';
-wwv_flow_api.g_varchar2_table(26) := '28273C2F6C6162656C3E27292C662B3D312C682E746F537472696E6728297D2C6A3D2862293D3E7B636F6E737420633D622E636C6F736573742827747227292E646174612827696427292C643D2428622E706172656E747328272E612D49472729292E61';
-wwv_flow_api.g_varchar2_table(27) := '7474722827696427292E736C69636528302C2D33292C653D617065782E726567696F6E2864292E77696467657428292C7B6D6F64656C3A667D3D652E696E7465726163746976654772696428276765745669657773272C276772696427292C683D662E67';
-wwv_flow_api.g_varchar2_table(28) := '65745265636F72642863292C693D652E696E746572616374697665477269642827676574566965777327292E677269642E6D6F64656C2E6765744F7074696F6E28276669656C647327293B6C6574206A3D27273B4F626A6563742E6B6579732869292E66';
-wwv_flow_api.g_varchar2_table(29) := '6F7245616368282862293D3E7B695B625D2E656C656D656E7449643D3D3D612626286A3D62297D292C662E73657456616C756528682C6A2C672E76616C2829297D2C6B3D28293D3E7B636F6E737420613D682E66696E642827696E7075745B747970653D';
-wwv_flow_api.g_varchar2_table(30) := '22636865636B626F78225D27293B612E70726F702827636865636B6564272C672E76616C28293D3D3D63292C2828293D3E7B2428272E69672D73696D706C652D636865636B626F7827292E656163682828612C62293D3E7B242862292E706172656E7473';
-wwv_flow_api.g_varchar2_table(31) := '2827746427292E6F666628272E696773696D706C65636865636B626F7827292E6F6E28276B6579646F776E2E696773696D706C65636865636B626F78272C2861293D3E7B69662833323D3D3D612E7768696368297B636F6E737420613D242862292E6669';
-wwv_flow_api.g_varchar2_table(32) := '6E642827696E7075745B747970653D22636865636B626F78225D27293B72657475726E20672E76616C28612E70726F702827636865636B656427293F643A63292E6368616E676528292C6A2867292C6B28292C21317D72657475726E21307D297D297D29';
-wwv_flow_api.g_varchar2_table(33) := '28297D3B682E617070656E6428692829292C682E66696E642827696E7075745B747970653D22636865636B626F78225D27292E6F6E28276368616E6765272C2861293D3E7B636F6E737420623D2428612E63757272656E74546172676574293B672E7661';
-wwv_flow_api.g_varchar2_table(34) := '6C28622E70726F702827636865636B656427293F633A64292E6368616E676528292C6A2862292C672E666F63757328297D292C6B28292C622E726561644F6E6C79262628672E636C6F7365737428272E69672D73696D706C652D636865636B626F782729';
-wwv_flow_api.g_varchar2_table(35) := '2E72656D6F7665436C617373282769672D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E616464436C617373282769672D73696D706C652D636865';
-wwv_flow_api.g_varchar2_table(36) := '636B626F782D656E61626C65642729292C617065782E6974656D2E63726561746528612C7B73657456616C75652861297B672E76616C2861292C6B28297D2C64697361626C6528297B672E636C6F7365737428272E69672D73696D706C652D636865636B';
-wwv_flow_api.g_varchar2_table(37) := '626F7827292E616464436C617373282769672D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E72656D6F7665436C617373282769672D73696D706C';
-wwv_flow_api.g_varchar2_table(38) := '652D636865636B626F782D656E61626C656427292C672E70726F70282764697361626C6564272C2130297D2C656E61626C6528297B622E726561644F6E6C797C7C28672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E72';
-wwv_flow_api.g_varchar2_table(39) := '656D6F7665436C617373282769672D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E616464436C617373282769672D73696D706C652D636865636B';
-wwv_flow_api.g_varchar2_table(40) := '626F782D656E61626C656427292C672E70726F70282764697361626C6564272C213129297D2C646973706C617956616C7565466F722861297B72657475726E20692821302C61297D7D297D7D5D293B0A';
+wwv_flow_api.g_varchar2_table(24) := '7565272C67292E617474722827746162696E646578272C2D31292E617474722827646174612D636865636B65642D76616C7565272C63292E617474722827646174612D756E636865636B65642D76616C7565272C64292E6F7074696F6E616C4174747228';
+wwv_flow_api.g_varchar2_table(25) := '27636865636B6564272C673D3D3D63292E6F7074696F6E616C41747472282764697361626C6564272C65292E6D61726B75702827202F3E3C6C6162656C27292E617474722827666F72272C60247B617D5F247B667D5F3060292E6D61726B757028273E27';
+wwv_flow_api.g_varchar2_table(26) := '292E636F6E74656E74282727292E6D61726B757028273C2F6C6162656C3E27292C662B3D312C682E746F537472696E6728297D2C6A3D2862293D3E7B636F6E737420633D622E636C6F736573742827747227292E646174612827696427292C643D242862';
+wwv_flow_api.g_varchar2_table(27) := '2E706172656E747328272E612D49472729292E617474722827696427292E736C69636528302C2D33292C653D617065782E726567696F6E2864292E77696467657428292C7B6D6F64656C3A667D3D652E696E746572616374697665477269642827676574';
+wwv_flow_api.g_varchar2_table(28) := '5669657773272C276772696427292C683D662E6765745265636F72642863292C693D652E696E746572616374697665477269642827676574566965777327292E677269642E6D6F64656C2E6765744F7074696F6E28276669656C647327293B6C6574206A';
+wwv_flow_api.g_varchar2_table(29) := '3D27273B4F626A6563742E6B6579732869292E666F7245616368282862293D3E7B695B625D2E656C656D656E7449643D3D3D612626286A3D62297D292C662E73657456616C756528682C6A2C672E76616C2829297D2C6B3D28293D3E7B636F6E73742061';
+wwv_flow_api.g_varchar2_table(30) := '3D682E66696E642827696E7075745B747970653D22636865636B626F78225D27293B612E70726F702827636865636B6564272C672E76616C28293D3D3D63292C2828293D3E7B2428272E69672D73696D706C652D636865636B626F7827292E6561636828';
+wwv_flow_api.g_varchar2_table(31) := '28612C62293D3E7B242862292E706172656E74732827746427292E6F666628272E696773696D706C65636865636B626F7827292E6F6E28276B6579646F776E2E696773696D706C65636865636B626F78272C2861293D3E7B69662833323D3D3D612E7768';
+wwv_flow_api.g_varchar2_table(32) := '696368297B636F6E737420613D242862292E66696E642827696E7075745B747970653D22636865636B626F78225D27293B72657475726E20672E76616C28612E70726F702827636865636B656427293F643A63292E6368616E676528292C6A2867292C6B';
+wwv_flow_api.g_varchar2_table(33) := '28292C21317D72657475726E21307D297D297D2928297D3B682E617070656E6428692829292C682E66696E642827696E7075745B747970653D22636865636B626F78225D27292E6F6E28276368616E6765272C2861293D3E7B636F6E737420623D242861';
+wwv_flow_api.g_varchar2_table(34) := '2E63757272656E74546172676574293B672E76616C28622E70726F702827636865636B656427293F633A64292E6368616E676528292C6A2862292C672E666F63757328297D292C6B28292C622E726561644F6E6C79262628672E636C6F7365737428272E';
+wwv_flow_api.g_varchar2_table(35) := '69672D73696D706C652D636865636B626F7827292E72656D6F7665436C617373282769672D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E616464';
+wwv_flow_api.g_varchar2_table(36) := '436C617373282769672D73696D706C652D636865636B626F782D656E61626C65642729292C617065782E6974656D2E63726561746528612C7B73657456616C75652861297B672E76616C2861292C6B28297D2C64697361626C6528297B672E636C6F7365';
+wwv_flow_api.g_varchar2_table(37) := '737428272E69672D73696D706C652D636865636B626F7827292E616464436C617373282769672D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E72';
+wwv_flow_api.g_varchar2_table(38) := '656D6F7665436C617373282769672D73696D706C652D636865636B626F782D656E61626C656427292C672E70726F70282764697361626C6564272C2130297D2C656E61626C6528297B622E726561644F6E6C797C7C28672E636C6F7365737428272E6967';
+wwv_flow_api.g_varchar2_table(39) := '2D73696D706C652D636865636B626F7827292E72656D6F7665436C617373282769672D73696D706C652D636865636B626F782D64697361626C656427292C672E636C6F7365737428272E69672D73696D706C652D636865636B626F7827292E616464436C';
+wwv_flow_api.g_varchar2_table(40) := '617373282769672D73696D706C652D636865636B626F782D656E61626C656427292C672E70726F70282764697361626C6564272C213129297D2C646973706C617956616C7565466F722861297B72657475726E20692821302C61297D7D297D7D5D293B0A';
null;
end;
/
diff --git a/src/js/ca_trevis_apex_ig_simple_checkbox.js b/src/js/ca_trevis_apex_ig_simple_checkbox.js
index 0915e0d..eb9fdf7 100644
--- a/src/js/ca_trevis_apex_ig_simple_checkbox.js
+++ b/src/js/ca_trevis_apex_ig_simple_checkbox.js
@@ -41,6 +41,7 @@ const init = (itemId, options) => {
.attr('id', `${itemId}_${index}_0`)
.attr('name', `${itemId}_${index}`)
.attr('value', value)
+ .attr('tabindex', -1)
.attr('data-checked-value', checkedValue)
.attr('data-unchecked-value', uncheckedValue)
.optionalAttr('checked', value === checkedValue)