Thursday, September 11, 2014

Insert and End Keys on the Lenovo x240 [Random]


I have an Lenovo x240 laptop, and the insert and end keys placement on that laptop is extremely unintuitive to me.  Specifically, the insert and key keys are layout to the same key, toggle by the function key. And I am not alone - people are complaining about this at the Lenovo forum also: https://forums.lenovo.com/t5/X-Series-ThinkPad-Laptops/X240-End-Insert-Fn-key-woes/td-p/1330763

For me, I use the "end" key 90% of the time, and find myself hitting the insert key by mistake. 

So, enter AHK to the rescue. The simple script below remaps the end and insert key, and now I am (somewhat) satisfy. 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Remap end and insert key for laptop ;;
end::insert
insert::end