diff --git a/js/term/buttons.js b/js/term/buttons.js
index 34347f5..111e890 100644
--- a/js/term/buttons.js
+++ b/js/term/buttons.js
@@ -18,9 +18,17 @@ module.exports = function initButtons (input) {
container.appendChild(button)
button.addEventListener('click', e => {
+ console.log('button click', e)
// might as well use the attribute ¯\_(ツ)_/¯
let index = +button.getAttribute('data-n')
input.sendButton(index)
+
+ e.target.blur() // if it keeps focus, spacebar will push it
+ })
+
+ // this prevents button retaining focus after half-click/drag-away
+ button.addEventListener('mouseleave', e => {
+ e.target.blur()
})
return button
diff --git a/lang/cs.php b/lang/cs.php
index f281fee..31c21aa 100644
--- a/lang/cs.php
+++ b/lang/cs.php
@@ -59,17 +59,17 @@ return [
'term.term_title' => 'Nadpis',
'term.term_width' => 'Šířka',
'term.term_height' => 'Výška',
- 'term.buttons' => 'Text tlačítke',
+ 'term.buttons' => 'Text tlačítek',
'term.theme' => 'Barevná paleta',
'term.cursor_shape' => 'Styl kurzoru',
'term.parser_tout_ms' => 'Timeout parseru',
'term.display_tout_ms' => 'Prodleva překreslení',
'term.display_cooldown_ms' => 'Min. čas překreslení',
'term.allow_decopt_12' => 'Povolit \e?12h/l',
- 'term.fn_alt_mode' => 'SS3 Fx klávesy',
+ 'term.fn_alt_mode' => 'SS3 Fn klávesy',
'term.show_config_links' => 'Menu pod obrazovkou',
'term.show_buttons' => 'Zobrazit tlačítka',
- 'term.loopback' => 'Loopback (SRM)',
+ 'term.loopback' => 'Lokální echo (SRM)',
'term.crlf_mode' => 'Enter = CR+LF (LNM)',
'term.want_all_fn' => 'Zachytávat F5, F11, F12',
'term.button_msgs' => 'Reporty tlačítek
(dek. ASCII CSV)',
@@ -78,8 +78,8 @@ return [
'term.color_fg_prev' => 'Barva textu',
'term.color_bg_prev' => 'Barva pozadí',
'term.colors_preview' => '',
-// 'term.debugbar' => 'Ladění ',
-// 'term.ascii_debug' => 'Použít debug parser',
+ 'term.debugbar' => 'Rozšířené ladění',
+ 'term.ascii_debug' => 'Ladění vstupních dat',
'cursor.block_blink' => 'Blok, blikající',
'cursor.block_steady' => 'Blok, stálý',
@@ -258,7 +258,7 @@ return [
// Generic button / dialog labels
- 'apply' => 'Uložit!',
+ 'apply' => 'Použít!',
'start' => 'Start',
'cancel' => 'Zrušit',
'enabled' => 'Zapnuto',