Nux

Merge lp:~3v1n0/nux/caps-lock-shortcuts-fix into lp:nux

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Andrea Azzarone
Approved revision: 883
Merged at revision: 887
Proposed branch: lp:~3v1n0/nux/caps-lock-shortcuts-fix
Merge into: lp:nux
Diff against target: 33 lines (+7/-4)
1 file modified
Nux/TextEntry.cpp (+7/-4)
To merge this branch: bzr merge lp:~3v1n0/nux/caps-lock-shortcuts-fix
Reviewer Review Type Date Requested Status
Andrea Azzarone (community) Approve
Review via email: mp+317095@code.launchpad.net

Commit message

TextEntry: Make sure Ctr+{C,V,X,A} work with caps-lock on

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

LGTM.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Nux/TextEntry.cpp'
--- Nux/TextEntry.cpp 2014-03-05 03:42:22 +0000
+++ Nux/TextEntry.cpp 2017-02-13 13:16:50 +0000
@@ -452,22 +452,25 @@
452452
453 handled = true;453 handled = true;
454 }454 }
455 else if (((keyval == NUX_VK_x) && ctrl && !shift) || ((keyval == NUX_VK_DELETE) && shift && !ctrl))455 else if (((keyval == NUX_VK_x || keyval == NUX_VK_X) && ctrl && !shift) ||
456 ((keyval == NUX_VK_DELETE) && shift && !ctrl))
456 {457 {
457 CutClipboard();458 CutClipboard();
458 handled = true;459 handled = true;
459 }460 }
460 else if (((keyval == NUX_VK_c) && ctrl && (!shift)) || ((keyval == NUX_VK_INSERT) && ctrl && (!shift)))461 else if (((keyval == NUX_VK_c || keyval == NUX_VK_C) && ctrl && !shift) ||
462 ((keyval == NUX_VK_INSERT) && ctrl && !shift))
461 {463 {
462 CopyClipboard();464 CopyClipboard();
463 handled = true;465 handled = true;
464 }466 }
465 else if (((keyval == NUX_VK_v) && ctrl && (!shift)) || ((keyval == NUX_VK_INSERT) && shift && (!ctrl)))467 else if (((keyval == NUX_VK_v || keyval == NUX_VK_V) && ctrl && !shift) ||
468 ((keyval == NUX_VK_INSERT) && shift && !ctrl))
466 {469 {
467 PasteClipboard();470 PasteClipboard();
468 handled = true;471 handled = true;
469 }472 }
470 else if ((keyval == NUX_VK_a) && ctrl)473 else if ((keyval == NUX_VK_a || keyval == NUX_VK_A) && ctrl)
471 {474 {
472 SelectAll();475 SelectAll();
473 handled = true;476 handled = true;

Subscribers

People subscribed via source and target branches