Skip to content

Commit

Permalink
Fix enter/return key not recognised (#4996)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcw authored Aug 26, 2023
1 parent 2567e3a commit f6185f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion calc-js@ptandler/files/calc-js@ptandler/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ class MiniCalc extends Applet.IconApplet {
const keySymbol = event.get_key_symbol();
// logInfo("keySymbol = ", keySymbol, " control = ", event.has_control_modifier());
switch (keySymbol) {
case Clutter.Return:
case Clutter.KEY_KP_Enter:
case Clutter.KEY_Return:
case Clutter.KP_Enter:
this.pushToHistory(input, result);
this.updateExpression(result);
Expand Down

0 comments on commit f6185f3

Please sign in to comment.