Ajout buttons K-Psul pour RAZ (F1) et majoration (F9)

This commit is contained in:
Aurélien Delobelle 2016-09-03 22:43:45 +02:00
parent f50d5a30cd
commit 0d900eadbb
2 changed files with 13 additions and 11 deletions

View file

@ -228,7 +228,7 @@ input[type=number]::-webkit-outer-spin-button {
#special_operations button { #special_operations button {
height:100%; height:100%;
width:50%; width:25%;
float:left; float:left;
@ -239,18 +239,10 @@ input[type=number]::-webkit-outer-spin-button {
font-weight:bold; font-weight:bold;
} }
#special_operations button:focus { #special_operations button:focus, #special_operations button:hover {
outline:none; outline:none;
}
#operation_deposit:focus, #operation_deposit:hover {
background:#000; background:#000;
color:#FFF; color:#fff;
}
#operation_withdraw:focus, #operation_withdraw:hover {
background:#000;
color:#FFF;
} }
/* Article autocomplete */ /* Article autocomplete */

View file

@ -65,6 +65,8 @@
<div id="special_operations"> <div id="special_operations">
<button role="button" class="btn" id="operation_deposit">Charge</button> <button role="button" class="btn" id="operation_deposit">Charge</button>
<button role="button" class="btn" id="operation_withdraw">Retrait</button> <button role="button" class="btn" id="operation_withdraw">Retrait</button>
<button role="button" class="btn" id="cool_reset">RAZ</button>
<button role="button" class="btn" id="ask_addcost">Major.</button>
</div> </div>
<div id="article_selection"> <div id="article_selection">
<input type="text" id="article_autocomplete"> <input type="text" id="article_autocomplete">
@ -1142,6 +1144,14 @@ $(document).ready(function() {
// Shorcuts // Shorcuts
$('#cool_reset').click(function() {
coolReset();
});
$('#ask_addcost').click(function() {
askAddcost();
});
$(document).on('keydown', function(e) { $(document).on('keydown', function(e) {
switch (e.keyCode) { switch (e.keyCode) {
case 112: case 112: