Skip to content

Commit

Permalink
Keys Menu Fix (#1337)
Browse files Browse the repository at this point in the history
* fix keys dropdown menu

* revery snap merge
  • Loading branch information
dragazo authored Oct 13, 2022
1 parent bf46f0f commit 7f8c78c
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions src/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9356,6 +9356,62 @@ InputSlotMorph.prototype.rpcActions = function () {

return dict;
};

// InputSlotMorph special drop-down menus:
// Note each function returning a drop-down menu
// must accept a Boolean parameter enabling its
// access for searching

InputSlotMorph.prototype.keysMenu = function () {
return {
'any key' : ['any key'],
'up arrow': ['up arrow'],
'down arrow': ['down arrow'],
'right arrow': ['right arrow'],
'left arrow': ['left arrow'],
enter: ['enter'],
space : ['space'],
'+' : ['+'],
'-' : ['-'],
a : ['a'],
b : ['b'],
c : ['c'],
d : ['d'],
e : ['e'],
f : ['f'],
g : ['g'],
h : ['h'],
i : ['i'],
j : ['j'],
k : ['k'],
l : ['l'],
m : ['m'],
n : ['n'],
o : ['o'],
p : ['p'],
q : ['q'],
r : ['r'],
s : ['s'],
t : ['t'],
u : ['u'],
v : ['v'],
w : ['w'],
x : ['x'],
y : ['y'],
z : ['z'],
'0' : ['0'],
'1' : ['1'],
'2' : ['2'],
'3' : ['3'],
'4' : ['4'],
'5' : ['5'],
'6' : ['6'],
'7' : ['7'],
'8' : ['8'],
'9' : ['9']
};
};

InputSlotMorph.prototype.messagesMenu = function () {
var dict = {},
rcvr = this.parentThatIsA(BlockMorph).scriptTarget(),
Expand Down

0 comments on commit 7f8c78c

Please sign in to comment.