{"id":1870,"date":"2018-01-03T13:10:11","date_gmt":"2018-01-03T13:10:11","guid":{"rendered":"http:\/\/hauweele.net\/~gawen\/blog\/?p=1870"},"modified":"2018-01-03T15:04:35","modified_gmt":"2018-01-03T15:04:35","slug":"disable-xf86back-forward","status":"publish","type":"post","link":"https:\/\/hauweele.net\/~gawen\/blog\/?p=1870","title":{"rendered":"Disable XF86Back\/Forward"},"content":{"rendered":"<p>Real ThinkPad keyboards (not this <a href=\"http:\/\/blog.lenovo.com\/en\/blog\/why-you-should-give-in-to-the-new-thinkpad-keyboard\">monstruous ignominy<\/a>) have directly accessible keys for XF86Back and XF86Forward. That is really problematic with web browsers such as Firefox or Chromium since pressing those keys transparently go back or forward into your history, discarding anything you were typing in the process, including that 3 hours long bug report you were just about to submit. That&#8217;s rather <i>annoying<\/i>, to say the least.<\/p>\n<p>Some other <a href=\"http:\/\/www.streppone.it\/cosimo\/blog\/2011\/02\/disable-evil-page-backforward-keys-on-a-lenovo-t500-thinkpad\">blog post<\/a> suggest to simply disable them with xmodmap. That is in <code>~\/.xmodmaprc<\/code> (or whatever it is you use):<\/p>\n<pre>\r\nkeycode 166 = NoSymbol\r\nkeycode 167 = NoSymbol\r\n<\/pre>\n<p>I personally prefer to remap them to Next\/Prior keys. Having these near the navigation keys might come up handy:<\/p>\n<pre>\r\nkeycode 166 = Next\r\nkeycode 167 = Prior\r\n<\/pre>\n<p>That&#8217;s on Linux though, on FreeBSD the keycodes are 233 and 234:<\/p>\n<pre>\r\nkeycode 233 = Next\r\nkeycode 234 = Prior\r\n<\/pre>\n<p>Anyway use the <code>xev<\/code> command and <code>xmodmap -pke<\/code> to find the keycodes and remap them to any other interesting key symbol.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Real ThinkPad keyboards (not this monstruous ignominy) have directly accessible keys for XF86Back and XF86Forward. That is really problematic with web browsers such as Firefox or Chromium since pressing those keys transparently go back or forward into your history, discarding &hellip; <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=1870\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[934,128,82,389,144,6,935,472,933,930,931,932],"class_list":["post-1870","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-browser","tag-chromium","tag-firefox","tag-freebsd","tag-keyboard","tag-linux","tag-remap","tag-thinkpad","tag-xev","tag-xf86back","tag-xf86forward","tag-xmodmap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1870"}],"version-history":[{"count":0,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1870\/revisions"}],"wp:attachment":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}