History

console.lua: add numpad + - * / keybindings

numpad + - * / was remapped to KP_ADD/KP_SUBTRACT/KP_MULTIPLY/KP_DIVIDE in #14660

verygoodlee committed 2 years ago

Commit e3a9ce21 parent f44c29b1 file · +4 −0Browse files

Showing the changes to player/lua/console.lua (1 of 1 file). Show all

Unified · Split

player/lua/console.lua+4−0
@@ -1575,6 +1575,10 @@ local function get_bindings() · 1574 unmodified lines
1575 { 'ctrl+del', del_next_word },1575 { 'ctrl+del', del_next_word },
1576 { 'alt+d', del_next_word },1576 { 'alt+d', del_next_word },
1577 { 'kp_dec', function() handle_char_input('.') end },1577 { 'kp_dec', function() handle_char_input('.') end },
1578 { 'kp_add', function() handle_char_input('+') end },
1579 { 'kp_subtract', function() handle_char_input('-') end },
1580 { 'kp_multiply', function() handle_char_input('*') end },
1581 { 'kp_divide', function() handle_char_input('/') end },
1578 }1582 }
1579 1583
1580 for i = 0, 9 do1584 for i = 0, 9 do

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t